Date: Thursday, April 6, 2023 @ 18:40:12
Author: felixonmars
Revision: 1440310
archrelease: copy trunk to community-staging-x86_64
Added:
python-krb5/repos/community-staging-x86_64/
python-krb5/repos/community-staging-x86_64/PKGBUILD
(from rev 1440309, python-krb5/trunk/PKGBUILD)
----------+
PKGBUILD | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
Copied: python-krb5/repos/community-staging-x86_64/PKGBUILD (from rev 1440309,
python-krb5/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 18:40:12 UTC (rev 1440310)
@@ -0,0 +1,34 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=krb5
+pkgname=python-${_pkg}
+pkgver=0.4.1
+pkgrel=2
+pkgdesc="krb5 API interface"
+arch=(x86_64)
+url="https://github.com/jborean93/pykrb5"
+license=(MIT)
+depends=(python krb5)
+makedepends=(cython python-setuptools)
+checkdepends=(python-pytest python-k5test)
+# No tests in pypi tarball
+#source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+source=(${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('fc7329c91eff254f46d01088995e12127844a79bcaac14ba29cbd7ec6bcbdd37')
+
+build() {
+ cd py${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd py${_pkg}-${pkgver}
+ local python_version=$(python -c 'import sys; print(".".join(map(str,
sys.version_info[:2])))')
+ PYTHONPATH="${PWD}"/build/lib.linux-$CARCH-cpython-${python_version/./}
pytest -vv --color=yes
+}
+
+package() {
+ cd py${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
--optimize=1
+ install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}