diff options
author | andalenavals | 2018-02-01 23:09:02 -0200 |
---|---|---|
committer | andalenavals | 2018-02-01 23:09:02 -0200 |
commit | dc39744a5ce50909fcbcb463582d9d9d7ca2ccfd (patch) | |
tree | 9c72d5063e964fe7dc1980646a0e34720e1a0ff6 | |
download | aur-python-wq-git.tar.gz |
No test defined. But working
-rw-r--r-- | .SRCINFO | 20 | ||||
-rwxr-xr-x | PKGBUILD | 42 |
2 files changed, 62 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..95f424800c69 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = python-wq-git + pkgdesc = This is a simple work queue written in python + pkgver = v0.1.0.r157.653a758 + pkgrel = 1 + url = https://github.com/esheldon/wq.git + arch = any + license = GPL + makedepends = git + makedepends = python + makedepends = python2 + source = python-wq-git::git+https://github.com/esheldon/wq.git + md5sums = SKIP + +pkgname = python-wq-git + depends = python + +pkgname = python2-wq-git + depends = python2 + depends = python + diff --git a/PKGBUILD b/PKGBUILD new file mode 100755 index 000000000000..bf5cae8bd3b5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Andres Alejandro Navarro Alsina <aanavarroa@unal.edu.co> +# Contributor: Erin Sheldon +pkgbase=python-wq-git +pkgname=('python-wq-git' 'python2-wq-git') +pkgver=v0.1.0.r157.653a758 +pkgrel=1 +pkgdesc="This is a simple work queue written in python" +arch=('any') +url="https://github.com/esheldon/wq.git" +license=('GPL') +makedepends=('git' 'python' 'python2') +source=("${pkgbase}::git+${url}") +md5sums=('SKIP') + +pkgver() { + cd "${pkgbase}" + printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')" +} + +prepare() { + cp -a $pkgbase{,-py2} +} + +build() { + cd "$srcdir"/$pkgbase + python setup.py build + + cd "$srcdir"/$pkgbase-py2 + python2 setup.py build +} + +package_python-wq-git() { + depends=('python') + cd $pkgbase + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 +} + +package_python2-wq-git() { + depends=('python2' 'python') + cd $pkgbase-py2 + python2 setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 +}
\ No newline at end of file |