Date: Saturday, May 14, 2016 @ 04:49:34 Author: fyan Revision: 175300
addpkg: python-whelk 2.6-1 Added: python-whelk/ python-whelk/repos/ python-whelk/trunk/ python-whelk/trunk/PKGBUILD ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Added: python-whelk/trunk/PKGBUILD =================================================================== --- python-whelk/trunk/PKGBUILD (rev 0) +++ python-whelk/trunk/PKGBUILD 2016-05-14 02:49:34 UTC (rev 175300) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <[email protected]> + +pkgbase=python-whelk +pkgname=('python-whelk' 'python2-whelk') +pkgver=2.6 +pkgrel=1 +pkgdesc="Easy access to shell commands from python" +arch=('any') +license=('custom:zlib') +url="https://pypi.python.org/pypi/whelk" +makedepends=('python' 'python2' 'git') +source=("git+https://github.com/seveas/whelk.git#tag=$pkgver") +sha512sums=('SKIP') + +prepare() { + cp -a whelk{,-py2} +} + +build() { + cd "$srcdir"/whelk + python setup.py build + + cd "$srcdir"/whelk-py2 + python2 setup.py build +} + +check() { + cd "$srcdir"/whelk + python -munittest discover + + cd "$srcdir"/whelk-py2 + python2 -munittest discover +} + +package_python-whelk() { + depends=('python') + + cd whelk + python setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} + +package_python2-whelk() { + depends=('python2') + + cd whelk-py2 + python2 setup.py install --root="$pkgdir" --optimize=1 + install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING +} Property changes on: python-whelk/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +Id \ No newline at end of property
