[arch-commits] Commit in python-aiodns/repos/community-any (PKGBUILD PKGBUILD)

Daniel M. Capella polyzen at gemini.archlinux.org
Sat Sep 3 11:21:06 UTC 2022


    Date: Saturday, September 3, 2022 @ 11:21:05
  Author: polyzen
Revision: 1291685

archrelease: copy trunk to community-any

Added:
  python-aiodns/repos/community-any/PKGBUILD
    (from rev 1291683, python-aiodns/trunk/PKGBUILD)
Deleted:
  python-aiodns/repos/community-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-03 11:21:00 UTC (rev 1291684)
+++ PKGBUILD	2022-09-03 11:21:05 UTC (rev 1291685)
@@ -1,33 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-pkgname=python-aiodns
-pkgver=3.0.0
-pkgrel=2
-pkgdesc='Simple DNS resolver for asyncio'
-arch=('any')
-url=https://github.com/saghul/aiodns
-license=('MIT')
-depends=('python-pycares')
-makedepends=('python-setuptools')
-source=("https://files.pythonhosted.org/packages/source/a/aiodns/aiodns-$pkgver.tar.gz")
-sha256sums=('946bdfabe743fceeeb093c8a010f5d1645f708a241be849e17edfb0e49e08cd6')
-b2sums=('2a3c61156069fa598df58191b35383da3e054396cdeb1bc8916cc0414bb6efc89d45789883a5b4f33e3a08a6ee544356b02d6c697c096deae3398f0ff4d3c316')
-
-build() {
-  cd aiodns-$pkgver
-  python setup.py build
-}
-
-# test_gethostbyaddr fails
-#check() {
-#  cd aiodns-$pkgver
-#  python tests.py
-#}
-
-package() {
-  cd aiodns-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 -t "$pkgdir"/usr/share/licenses/$pkgname LICENSE
-}
-
-# vim:set ts=2 sw=2 et:

Copied: python-aiodns/repos/community-any/PKGBUILD (from rev 1291683, python-aiodns/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-03 11:21:05 UTC (rev 1291685)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=python-aiodns
+pkgver=3.0.0
+pkgrel=3
+pkgdesc='Simple DNS resolver for asyncio'
+arch=('any')
+url=https://github.com/saghul/aiodns
+license=('MIT')
+depends=('python-pycares')
+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')
+
+build() {
+  cd aiodns-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+# test_gethostbyaddr fails
+#check() {
+#  cd aiodns-$pkgver
+#  python tests.py
+#}
+
+package() {
+  cd aiodns-$pkgver
+  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