[arch-commits] Commit in (4 files)

David Runge dvzrv at archlinux.org
Mon May 4 17:01:28 UTC 2020


    Date: Monday, May 4, 2020 @ 17:01:28
  Author: dvzrv
Revision: 624747

Adding python-selinux as depends for molecule.

Added:
  python-selinux/
  python-selinux/repos/
  python-selinux/trunk/
  python-selinux/trunk/PKGBUILD

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

Added: python-selinux/trunk/PKGBUILD
===================================================================
--- python-selinux/trunk/PKGBUILD	                        (rev 0)
+++ python-selinux/trunk/PKGBUILD	2020-05-04 17:01:28 UTC (rev 624747)
@@ -0,0 +1,33 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=selinux
+pkgname=python-selinux
+pkgver=0.2.1
+pkgrel=1
+pkgdesc="Pure-python selinux shim module for use in virtualenvs"
+arch=('any')
+url="https://github.com/pycontribs/selinux"
+license=('MIT')
+depends=('python')
+makedepends=('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