[arch-commits] Commit in python-aiodns/trunk (PKGBUILD)
Daniel M. Capella
polyzen at gemini.archlinux.org
Sat Sep 3 11:20:46 UTC 2022
Date: Saturday, September 3, 2022 @ 11:20:46
Author: polyzen
Revision: 1291681
upgpkg: python-aiodns 3.0.0-3: Use PEP 517
Modified:
python-aiodns/trunk/PKGBUILD
----------+
PKGBUILD | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-09-03 11:20:44 UTC (rev 1291680)
+++ PKGBUILD 2022-09-03 11:20:46 UTC (rev 1291681)
@@ -2,13 +2,14 @@
pkgname=python-aiodns
pkgver=3.0.0
-pkgrel=2
+pkgrel=3
pkgdesc='Simple DNS resolver for asyncio'
arch=('any')
url=https://github.com/saghul/aiodns
license=('MIT')
depends=('python-pycares')
-makedepends=('python-setuptools')
+makedepends=('python-build' 'python-installer' 'python-wheel'
+ 'python-setuptools')
source=("https://files.pythonhosted.org/packages/source/a/aiodns/aiodns-$pkgver.tar.gz")
sha256sums=('946bdfabe743fceeeb093c8a010f5d1645f708a241be849e17edfb0e49e08cd6')
b2sums=('2a3c61156069fa598df58191b35383da3e054396cdeb1bc8916cc0414bb6efc89d45789883a5b4f33e3a08a6ee544356b02d6c697c096deae3398f0ff4d3c316')
@@ -15,7 +16,7 @@
build() {
cd aiodns-$pkgver
- python setup.py build
+ python -m build --wheel --skip-dependency-check --no-isolation
}
# test_gethostbyaddr fails
@@ -26,6 +27,11 @@
package() {
cd aiodns-$pkgver
- python setup.py install --root="$pkgdir" --optimize=1 --skip-build
- install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
+ python -m installer --destdir="$pkgdir" dist/*.whl
+
+ # Symlink license file
+ local site_packages=$(python -c "import site; print(site.getsitepackages()[0])")
+ install -d "$pkgdir"/usr/share/licenses/$pkgname
+ ln -s "$site_packages"/aiodns-$pkgver.dist-info/LICENSE \
+ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list