summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c68847b526762ce29f5157691c4bf39e8e34fa92 (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
29
30
31
32
33
34
35
36
37
38
39
40
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"
}