Date: Saturday, September 28, 2019 @ 14:45:53 Author: foxboron Revision: 511995
upgpkg: python-keyutils 0.6-2 Modified: python-keyutils/trunk/PKGBUILD ----------+ PKGBUILD | 30 +++++++----------------------- 1 file changed, 7 insertions(+), 23 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2019-09-28 14:44:03 UTC (rev 511994) +++ PKGBUILD 2019-09-28 14:45:53 UTC (rev 511995) @@ -1,42 +1,26 @@ # Maintainer: Morten Linderud <foxbo...@archlinux.org> # Contibutor: Pierre Neidhardt <ambre...@gmail.com> -pkgbase=python-keyutils -pkgname=(python-keyutils python2-keyutils) +pkgname=python-keyutils pkgver=0.6 -pkgrel=1 +pkgrel=2 pkgdesc="A set of python bindings for keyutils" arch=("x86_64") url="https://github.com/sassoftware/python-keyutils" license=("Apache") # python-pytest-runner in makedepends due to be set in setup_requires (which is wrong upstream) -makedepends=("python" "python-setuptools" "python-pytest-runner" - "python2" "python2-setuptools" "python2-pytest-runner") -checkdepends=("python-pytest" - "python2-pytest") +depends=("python" "keyutils") +makedepends=("python" "python-setuptools" "python-pytest-runner") +checkdepends=("python-pytest") source=("$pkgname-$pkgver.tar.gz::https://github.com/sassoftware/python-keyutils/archive/$pkgver.tar.gz") sha256sums=('f69e6cadc50525dcb117714e440ee6579b0e5b7f12910b2bb2e910b236a2b18b') -prepare(){ - cp -r "$pkgname-$pkgver"{,-py2} -} - build(){ - cd "$srcdir/$pkgname-$pkgver" + cd "$pkgname-$pkgver" python setup.py build - - cd "$srcdir/$pkgname-$pkgver-py2" - python2 setup.py build } -package_python-keyutils() { - depends=("python" "keyutils") +package(){ cd "$pkgname-$pkgver" python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1 --skip-build } - -package_python2-keyutils() { - depends=("python2" "keyutils") - cd "$pkgbase-$pkgver-py2" - python2 setup.py install --root="$pkgdir" --prefix=/usr --optimize=1 --skip-build -}