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

Filipe Laíns ffy00 at archlinux.org
Sat Aug 15 17:42:06 UTC 2020


    Date: Saturday, August 15, 2020 @ 17:42:05
  Author: ffy00
Revision: 679769

archrelease: copy trunk to community-any

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

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

Copied: python-auditwheel/repos/community-any/PKGBUILD (from rev 679768, python-auditwheel/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2020-08-15 17:42:05 UTC (rev 679769)
@@ -0,0 +1,44 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=auditwheel
+pkgname=python-$_pkgname
+pkgver=3.1.1
+pkgrel=1
+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 py38 --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.8/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