diff options
author | Moritz Lipp | 2015-06-15 20:19:16 +0200 |
---|---|---|
committer | Moritz Lipp | 2015-06-15 20:19:16 +0200 |
commit | 9be07cd3e81abd097a1dcaf802d2e42fffe5aeea (patch) | |
tree | 00602f90cb6b95dd7002697557a98367e399dfb8 /PKGBUILD | |
download | aur-roundup-hg.tar.gz |
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..e94bed296162 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Moritz Lipp <mlq@pwmt.org> + +pkgname=roundup-hg +_pkgname=roundup +pkgver=r4849.e68920390aad +pkgrel=1 +pkgdesc="Issue tracking system." +arch=('any') +url="http://www.roundup-tracker.org" +license="PSF" +groups=() +depends=('python2') +makedepends=('mercurial' 'sed') +conflicts=('roundup') +source=("${_pkgname}::hg+http://hg.code.sf.net/p/${_pkgname}/code") +sha1sums=('SKIP') + +build() { + cd "$srcdir/$_pkgname" + python2 setup.py build +} + +package() { + cd "$srcdir/$_pkgname" + python2 setup.py install --prefix="/usr" --root="$pkgdir" --optimize=1 + sed -i -e "s|$pkgdir||" "$pkgdir"/usr/bin/* +} + +pkgver() { + cd "$srcdir/$_pkgname" + printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)" +} + +# vim:set ts=2 sw=2 et: |