Date: Friday, April 7, 2023 @ 14:48:24
Author: felixonmars
Revision: 1441241
archrelease: copy trunk to community-staging-any
Added:
python-auditwheel/repos/community-staging-any/
python-auditwheel/repos/community-staging-any/PKGBUILD
(from rev 1441238, python-auditwheel/trunk/PKGBUILD)
----------+
PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 52 insertions(+)
Copied: python-auditwheel/repos/community-staging-any/PKGBUILD (from rev
1441238, python-auditwheel/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-07 14:48:24 UTC (rev 1441241)
@@ -0,0 +1,52 @@
+# Maintainer: Filipe LaĆns (FFY00) <[email protected]>
+
+_pkgname=auditwheel
+pkgname=python-$_pkgname
+pkgver=5.3.0
+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-build' 'python-installer' 'python-setuptools'
'python-setuptools-scm' 'python-wheel')
+#checkdepends=('python-pytest' 'python-jsonschema' 'python-pretend'
'python-docker')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('5afb7145b2e604b41ce27d531c4bb4598e6f3c7098161738361d48f437f37cff798bdea87f6960bd44f6164afea5991b84fd93c22277c8cb31f0a82bff2812fc')
+
+prepare() {
+ cd $_pkgname-$pkgver
+
+ # replace the vendored wheel module with the one on the system
+ find -type f -name '*.py' -exec \
+ sed -i 's|\._vendor\.wheel|wheel|' '{}' \+
+
+ # remove vendored wheel module
+ rm -rf auditwheel/_vendor
+}
+
+build() {
+ cd $_pkgname-$pkgver
+
+ SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver python -m build -nw
+}
+
+#check() {
+# cd $_pkgname-$pkgver
+#
+# python -m venv --system-site-packages test
+# test/bin/python -m installer dist/*.whl
+#
+# PATH="test/bin:$PATH" python -m pytest
+#}
+
+package() {
+ cd $_pkgname-$pkgver
+
+ python -m installer -d "$pkgdir" dist/*.whl
+ #install -Dm 644 auditwheel/policy/policy.json
"$pkgdir"/usr/lib/python3.10/site-packages/auditwheel/policy/policy.json
+
+ install -Dm 644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: