summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMoritz Lipp2015-06-15 20:19:16 +0200
committerMoritz Lipp2015-06-15 20:19:16 +0200
commit9be07cd3e81abd097a1dcaf802d2e42fffe5aeea (patch)
tree00602f90cb6b95dd7002697557a98367e399dfb8 /PKGBUILD
downloadaur-roundup-hg.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..e94bed29616
--- /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: