Date: Friday, April 7, 2023 @ 04:48:51
  Author: felixonmars
Revision: 1440565

archrelease: copy trunk to community-staging-any

Added:
  python-selinux/repos/community-staging-any/
  python-selinux/repos/community-staging-any/PKGBUILD
    (from rev 1440562, python-selinux/trunk/PKGBUILD)

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

Copied: python-selinux/repos/community-staging-any/PKGBUILD (from rev 1440562, 
python-selinux/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-07 04:48:51 UTC (rev 1440565)
@@ -0,0 +1,28 @@
+# Maintainer: David Runge <[email protected]>
+
+_name=selinux
+pkgname=python-selinux
+pkgver=0.3.0
+pkgrel=2
+pkgdesc="Pure-python selinux shim module for use in virtualenvs"
+arch=(any)
+url="https://github.com/pycontribs/selinux";
+license=(MIT)
+depends=(python-distro)
+makedepends=(python-build python-installer python-setuptools 
python-setuptools-scm python-wheel)
+source=(https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz)
+sha512sums=('4af1649868f180a4549cfbdbf380a85100fa7e99b815b94d9069fbf05f7ca5377fc6acfed526621c1b4c6a781fd13df864ab194b14314ba4d4375f5b6230800e')
+b2sums=('f46b26e4af2ad33cdb3fa54e1d0033aba8f00db0ce6845b3440a86430107456e7a55b67da5fad56bcc85c8b3efe18439e510ca1dcdb8cc473966c597534b944e')
+
+build() {
+  cd $_name-$pkgver
+  export SETUPTOOLS_SCM_PRETEND_VERSION="$pkgver"
+  python -m build --wheel --no-isolation
+}
+
+package() {
+  cd $_name-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+  install -vDm 644 README.rst -t "$pkgdir/usr/share/doc/$pkgname/"
+}

Reply via email to