[arch-commits] Commit in python-keyutils/trunk (PKGBUILD)

Morten Linderud foxboron at archlinux.org
Thu May 31 15:17:29 UTC 2018


    Date: Thursday, May 31, 2018 @ 15:17:28
  Author: foxboron
Revision: 334858

upgpkg: python-keyutils 0.5-2

Rebuild and python2

Modified:
  python-keyutils/trunk/PKGBUILD

----------+
 PKGBUILD |   40 ++++++++++++++++++++++++++++++++--------
 1 file changed, 32 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-05-31 15:08:00 UTC (rev 334857)
+++ PKGBUILD	2018-05-31 15:17:28 UTC (rev 334858)
@@ -1,17 +1,41 @@
-# Maintainer: Pierre Neidhardt <ambrevar at gmail.com>
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contibutor: Pierre Neidhardt <ambrevar at gmail.com>
 
-pkgname=python-keyutils
+pkgbase=python-keyutils
+pkgname=(python-keyutils python2-keyutils)
 pkgver=0.5
-pkgrel=1
+pkgrel=2
 pkgdesc="A set of python bindings for keyutils"
-arch=("any")
+arch=("x86_64")
 url="https://github.com/sassoftware/python-keyutils"
 license=("Apache")
-depends=("keyutils" "python-setuptools")
+makedepends=("python" "python-setuptools"
+	     "python2" "python2-setuptools")
+checkdepends=("python-pytest" "python-pytest-runner"
+	      "python2-pytest" "python2-pytest-runner")
 source=("$pkgname-$pkgver.tar.gz::https://github.com/sassoftware/python-keyutils/archive/v$pkgver.tar.gz")
-md5sums=('3fe2e4eed50595ee6c1a4ccf5cbdd5be')
+sha256sums=('a1a12891e618f1568d9a873c0990e17ff39abf11ba81b65e5dae3cd7ced63441')
 
-package() {
+prepare(){
+	cp -r "$pkgname-$pkgver"{,-py2}
+}
+
+build(){
 	cd "$srcdir/$pkgname-$pkgver"
-	python setup.py install --root="$pkgdir" --prefix=/usr --optimize=1
+	python setup.py build
+
+	cd "$srcdir/$pkgname-$pkgver-py2"
+	python2 setup.py build
 }
+
+package_python-keyutils() {
+	depends=("python" "keyutils")
+	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
+}



More information about the arch-commits mailing list