[arch-commits] Commit in python-pykerberos/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri Oct 25 15:55:06 UTC 2019
Date: Friday, October 25, 2019 @ 15:55:06
Author: felixonmars
Revision: 519272
archrelease: copy trunk to community-staging-x86_64
Added:
python-pykerberos/repos/community-staging-x86_64/
python-pykerberos/repos/community-staging-x86_64/PKGBUILD
(from rev 519269, python-pykerberos/trunk/PKGBUILD)
----------+
PKGBUILD | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
Copied: python-pykerberos/repos/community-staging-x86_64/PKGBUILD (from rev 519269, python-pykerberos/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2019-10-25 15:55:06 UTC (rev 519272)
@@ -0,0 +1,41 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=python-pykerberos
+pkgname=('python-pykerberos' 'python2-pykerberos')
+pkgver=1.2.1
+pkgrel=3
+pkgdesc="High-level interface to Kerberos"
+arch=('x86_64')
+license=('Apache')
+url="https://github.com/02strich/pykerberos"
+makedepends=('python-setuptools' 'python2-setuptools' 'krb5')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/02strich/pykerberos/archive/v$pkgver.tar.gz")
+sha512sums=('1926a531e9aaa3ee71c3cb97f1bdf12b64478b96d9206d01b140db079cb9222a7e5f6dd39309eb6074ce4b86a4311162293537d1365c30b2d8ea0e6df0b44404')
+
+prepare() {
+ cp -a pykerberos-$pkgver{,-py2}
+}
+
+build() {
+ cd "$srcdir"/pykerberos-$pkgver
+ python setup.py build
+
+ cd "$srcdir"/pykerberos-$pkgver-py2
+ python2 setup.py build
+}
+
+package_python-pykerberos() {
+ depends=('python' 'krb5')
+
+ cd pykerberos-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+package_python2-pykerberos() {
+ depends=('python2' 'krb5')
+
+ cd pykerberos-$pkgver-py2
+ python2 setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
More information about the arch-commits
mailing list