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

Evangelos Foutras foutrelis at archlinux.org
Thu Nov 12 19:52:08 UTC 2020


    Date: Thursday, November 12, 2020 @ 19:52:07
  Author: foutrelis
Revision: 753664

archrelease: copy trunk to community-staging-any

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

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

Copied: python-auditwheel/repos/community-staging-any/PKGBUILD (from rev 753663, python-auditwheel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-12 19:52:07 UTC (rev 753664)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=auditwheel
+pkgname=python-$_pkgname
+pkgver=3.1.1
+pkgrel=2
+pkgdesc='Auditing and relabeling cross-distribution Linux wheels'
+arch=('any')
+url='https://github.com/pypa/auditwheel'
+license=('MIT' 'BSD')
+depends=('python' 'python-wheel' 'python-pyelftools' 'unzip' 'patchelf')
+makedepends=('python-setuptools' 'python-pbr')
+#checkdepends=('python-tox-current-env' 'python-pip' 'python-pytest' 'python-jsonschema' 'python-pretend' 'python-docker')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('441ecc496573693fe798d2a14f1b3b810e8cac89d450e5631b4f780a1fcbedca16f383d765cfb61ee9d1f96e7238aca736fa04366a9aaaf0d0a792c2a643175c')
+
+export PBR_VERSION=$pkgver
+
+#prepare() {
+#  find $_pkgname-$pkgver/tests -type f -exec sed -i 's|subprocess.run(\["auditwheel"|subprocess.run(\["python", "-m", "auditwheel"|' '{}' \+
+#}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+#check() {
+#  cd $_pkgname-$pkgver
+#
+#  tox -e py39 --current-env
+#}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  install -Dm 644 auditwheel/policy/policy.json "$pkgdir"/usr/lib/python3.9/site-packages/auditwheel/policy/policy.json
+
+  install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list