Skip to content

Instantly share code, notes, and snippets.

@rvasilev
Last active December 8, 2017 10:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvasilev/d90e20c76e39821b9dd3a924d4703227 to your computer and use it in GitHub Desktop.
Save rvasilev/d90e20c76e39821b9dd3a924d4703227 to your computer and use it in GitHub Desktop.
Arch Linux bugwarrior 1.5.1 PKGBUILD with AUR dependencies
# Maintainer: Christian Krause ("wookietreiber") <christian.krause@mailbox.org>
# Maintainer: Roman Vasilev <2rvasilev@live.ru>
pkgname=bugwarrior
pkgver=1.5.1
pkgrel=1
pkgdesc="pull issues from issue trackers into taskwarrior (GitHub, GitLab, Bitbucket, etc.)"
arch=(any)
url="https://bugwarrior.readthedocs.io"
license=('GPL3')
depends=('python2-bugzilla' 'python2-click' 'python2-dateutil' 'python2-dogpile.cache' 'python2-future' 'python2-keyring' 'python2-lockfile' 'python2-offtrac' 'python2-pytz' 'python2-requests' 'python2-twiggy' 'python2-xdg' 'python2-configparser' 'python2-jinja')
conflicts=(bugwarrior-git)
provides=('bugwarrior')
source=("${pkgname}-${pkgver}.zip::https://github.com/ralphbean/bugwarrior/archive/${pkgver}.zip"
"setup.patch")
prepare() {
cd ${srcdir}/${pkgname}-${pkgver}
patch setup.py ${srcdir}/setup.patch
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
# virtualenv2 ${pkgdir}/opt/${pkgname}
# ${pkgdir}/opt/${pkgname}/bin/python2 setup.py install --optimize=1
# sed -i "s|${pkgdir}/opt/$pkgname|/opt/${pkgname}|g" ${pkgdir}/opt/${pkgname}/bin/*
python2 setup.py install --root="${pkgdir}" --optimize=1
# install -d ${pkgdir}/usr/bin/
# ln -s /opt/${pkgname}/bin/${pkgname}-pull ${pkgdir}/usr/bin/${pkgname}-pull
# ln -s /opt/${pkgname}/bin/${pkgname}-vault ${pkgdir}/usr/bin/${pkgname}-vault
# ln -s /opt/${pkgname}/bin/${pkgname}-uda ${pkgdir}/usr/bin/${pkgname}-uda
}
md5sums=('2f55ebab104c533cd2c7e8ae91241fd6'
'eab141c2d22f46b5cf242fd7c5046ac9')
--- /home/roman/Documents/Devel/arch.linux/bugwarrior.pkgbuild/src/bugwarrior-1.5.1/setup.py
+++ /home/roman/Documents/Devel/arch.linux/bugwarrior.pkgbuild/src/bugwarrior-1.5.1/setup (copy).py
@@ -38,7 +38,7 @@
"dogpile.cache>=0.5.3",
"lockfile>=0.9.1",
"click",
- "future!=0.16.0",
+ "future",
],
extras_require=dict(
keyring=["keyring", "dbus-python"],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment