Date: Saturday, December 24, 2016 @ 11:35:41 Author: bpiotrowski Revision: 201467
archrelease: copy trunk to community-staging-any Added: python-whelk/repos/community-staging-any/ python-whelk/repos/community-staging-any/PKGBUILD (from rev 201466, python-whelk/trunk/PKGBUILD) ----------+ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) Copied: python-whelk/repos/community-staging-any/PKGBUILD (from rev 201466, python-whelk/trunk/PKGBUILD) =================================================================== --- community-staging-any/PKGBUILD (rev 0) +++ community-staging-any/PKGBUILD 2016-12-24 11:35:41 UTC (rev 201467) @@ -0,0 +1,50 @@ +# $Id$ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgbase=python-whelk +pkgname=('python-whelk' 'python2-whelk') +pkgver=2.7 +pkgrel=2 +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 +}