[arch-commits] Commit in python-keyutils/repos (2 files)

Evangelos Foutras foutrelis at archlinux.org
Sat Jun 30 18:33:56 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:33:55
  Author: foutrelis
Revision: 349024

archrelease: copy trunk to community-staging-x86_64

Added:
  python-keyutils/repos/community-staging-x86_64/
  python-keyutils/repos/community-staging-x86_64/PKGBUILD
    (from rev 349023, python-keyutils/trunk/PKGBUILD)

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Copied: python-keyutils/repos/community-staging-x86_64/PKGBUILD (from rev 349023, python-keyutils/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 18:33:55 UTC (rev 349024)
@@ -0,0 +1,41 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contibutor: Pierre Neidhardt <ambrevar at gmail.com>
+
+pkgbase=python-keyutils
+pkgname=(python-keyutils python2-keyutils)
+pkgver=0.5
+pkgrel=3
+pkgdesc="A set of python bindings for keyutils"
+arch=("x86_64")
+url="https://github.com/sassoftware/python-keyutils"
+license=("Apache")
+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")
+sha256sums=('a1a12891e618f1568d9a873c0990e17ff39abf11ba81b65e5dae3cd7ced63441')
+
+prepare(){
+	cp -r "$pkgname-$pkgver"{,-py2}
+}
+
+build(){
+	cd "$srcdir/$pkgname-$pkgver"
+	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