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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 18:15:27 UTC 2020


    Date: Monday, November 9, 2020 @ 18:15:26
  Author: foutrelis
Revision: 747901

archrelease: copy trunk to community-staging-any

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

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

Copied: python-selinux/repos/community-staging-any/PKGBUILD (from rev 747900, python-selinux/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 18:15:26 UTC (rev 747901)
@@ -0,0 +1,32 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=selinux
+pkgname=python-selinux
+pkgver=0.2.1
+pkgrel=3
+pkgdesc="Pure-python selinux shim module for use in virtualenvs"
+arch=('any')
+url="https://github.com/pycontribs/selinux"
+license=('MIT')
+depends=('python-distro' 'python-setuptools')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('e0bec9113461a4dc53e4965522b222bd674212fe1fd987180488d6d9183a1c25588ac9bec4a040595f9313932bc04b83e7f27505d539412fc0d49c2188679831')
+
+prepare() {
+  mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list