blob: 16c0bcfc0f47bf062100fb67a623a6c6f2930a8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
# Maintainer: Élie Bouttier <elie+aur@bouttier.eu>
# Contributor: Jakob Gahde <j5lx@fmail.co.uk>
pkgname='python-rq'
pkgver=1.10.1
_ver="${pkgver%.*}"
pkgrel=1
pkgdesc="Simple job queues for Python"
arch=('any')
license=('BSD')
url="https://github.com/rq/rq"
makedepends=('python-setuptools')
depends=('python' 'python-click' 'python-redis')
source=("$pkgname-$pkgver.tar.gz::${url}/archive/refs/tags/v${_ver}.tar.gz")
sha256sums=('cc86804d245ac2978391fb0a7030b0b107d6a5acc1eb5ceb8224149123492f58')
package() {
cd "${srcdir}/rq-${_ver}"
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"
}
|