Skip to content

Instantly share code, notes, and snippets.

@rvasilev
Last active December 8, 2017 10:05
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/c86d9f4522d5375f12f22dd8718c9729 to your computer and use it in GitHub Desktop.
Save rvasilev/c86d9f4522d5375f12f22dd8718c9729 to your computer and use it in GitHub Desktop.
Arch Linux bugwarrior 1.5.1 PKGBUILD with VIRTUALENV and no AUR dependencies
# https://bugwarrior.readthedocs.io/en/latest/using.html
# cat ~/.config/systemd/user/bugwarrior-pull.service
#
# systemctl --user enable bugwarrior-pull.timer
# systemctl --user start bugwarrior-pull.timer
[Unit]
Description=bugwarrior-pull
[Service]
Environment="DISPLAY=:0"
ExecStart=/usr/bin/bugwarrior-pull
Type=oneshot
[Install]
WantedBy=default.target
# https://bugwarrior.readthedocs.io/en/latest/using.html
# cat ~/.config/systemd/user/bugwarrior-pull.timer
#
# systemctl --user enable bugwarrior-pull.timer
# systemctl --user start bugwarrior-pull.timer
[Unit]
Description=Run bugwarrior-pull hourly and on boot
[Timer]
OnBootSec=15min
OnUnitActiveSec=1h
[Install]
WantedBy=timers.target
# 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-virtualenv' 'python2-setuptools')
conflicts=(bugwarrior-git)
provides=('bugwarrior')
source=("${pkgname}-${pkgver}.zip::https://github.com/ralphbean/bugwarrior/archive/${pkgver}.zip")
md5sums=('2f55ebab104c533cd2c7e8ae91241fd6')
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/*
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment