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

Daniel M. Capella polyzen at gemini.archlinux.org
Sun Sep 4 18:57:16 UTC 2022


    Date: Sunday, September 4, 2022 @ 18:57:16
  Author: polyzen
Revision: 1292876

archrelease: copy trunk to community-any

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

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-09-04 18:56:56 UTC (rev 1292875)
+++ PKGBUILD	2022-09-04 18:57:16 UTC (rev 1292876)
@@ -1,33 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-
-pkgname=python-dkim
-pkgver=1.0.5
-pkgrel=6
-pkgdesc='Python library that implements DKIM and ARC email signing and verification'
-arch=('any')
-url=https://launchpad.net/dkimpy
-license=('ZLIB')
-depends=('python-dnspython')
-makedepends=('python-setuptools')
-checkdepends=('python-authres' 'python-pynacl')
-optdepends=('python-aiodns' 'python-authres' 'python-pynacl')
-source=("https://files.pythonhosted.org/packages/source/d/dkimpy/dkimpy-$pkgver.tar.gz")
-sha256sums=('9a2420bf09af686736773153fca32a02ae11ecbe24b540c26104628959f91121')
-
-build() {
-  cd dkimpy-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd dkimpy-$pkgver
-  python -m unittest dkim.tests.test_suite
-}
-
-package() {
-  cd dkimpy-$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-dkim/repos/community-any/PKGBUILD (from rev 1292875, python-dkim/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-09-04 18:57:16 UTC (rev 1292876)
@@ -0,0 +1,37 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+
+pkgname=python-dkim
+pkgver=1.0.5
+pkgrel=7
+pkgdesc='Python library that implements DKIM and ARC email signing and verification'
+arch=('any')
+url=https://launchpad.net/dkimpy
+license=('ZLIB')
+depends=('python-dnspython')
+makedepends=('python-build' 'python-installer' 'python-setuptools'
+             'python-wheel')
+checkdepends=('python-authres' 'python-pynacl')
+optdepends=('python-aiodns' 'python-authres' 'python-pynacl')
+source=("https://files.pythonhosted.org/packages/source/d/dkimpy/dkimpy-$pkgver.tar.gz")
+sha256sums=('9a2420bf09af686736773153fca32a02ae11ecbe24b540c26104628959f91121')
+
+build() {
+  cd dkimpy-$pkgver
+  python -m build --wheel --skip-dependency-check --no-isolation
+}
+
+check() {
+  cd dkimpy-$pkgver
+  python -m unittest dkim.tests.test_suite
+}
+
+package() {
+  cd dkimpy-$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"/dkimpy-$pkgver.dist-info/LICENSE \
+    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}



More information about the arch-commits mailing list