summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJ5lx2015-12-30 20:22:07 +0100
committerJ5lx2015-12-30 20:22:07 +0100
commit5815eace0983da9d7931acbb5683677dd32e26cb (patch)
treeb289a9d2708eb5cbdf611237fe6f702c099fc87e /PKGBUILD
downloadaur-5815eace0983da9d7931acbb5683677dd32e26cb.tar.gz
0.5.6-1: Initial package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c68847b5267
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,41 @@
+# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
+
+pkgbase=python-rq
+pkgname=('python-rq' 'python2-rq')
+pkgver=0.5.6
+pkgrel=1
+pkgdesc="A simple, lightweight, library for creating background jobs, and processing them"
+arch=('any')
+license=('BSD')
+url="https://github.com/nvie/rq/"
+makedepends=('python' 'python-setuptools' 'python-click' 'python-redis'
+ 'python2' 'python2-setuptools' 'python2-click' 'python2-redis')
+source=("https://github.com/nvie/rq/archive/${pkgver}.tar.gz")
+md5sums=('e04e91ee5d9f751efa9ab9ca6da0ee4d')
+
+package_python-rq() {
+ depends=('python' 'python-click' 'python-redis')
+
+ cd "${srcdir}/rq-${pkgver}"
+
+ python setup.py install --root="${pkgdir}" -O1
+ mv "${pkgdir}/usr/bin/rq"{,3}
+ mv "${pkgdir}/usr/bin/rqinfo"{,3}
+ mv "${pkgdir}/usr/bin/rqworker"{,3}
+ ln -s "/usr/bin/rq3" "${pkgdir}/usr/bin/rq"
+ ln -s "/usr/bin/rqinfo3" "${pkgdir}/usr/bin/rqinfo"
+ ln -s "/usr/bin/rqworker3" "${pkgdir}/usr/bin/rqworker"
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-rq() {
+ depends=('python2' 'python2-click' 'python2-redis')
+
+ cd "${srcdir}/rq-${pkgver}"
+
+ python2 setup.py install --root="${pkgdir}" -O1
+ mv "${pkgdir}/usr/bin/rq"{,2}
+ mv "${pkgdir}/usr/bin/rqinfo"{,2}
+ mv "${pkgdir}/usr/bin/rqworker"{,2}
+ install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}