[arch-commits] Commit in python-authheaders/trunk (PKGBUILD)

David Runge dvzrv at gemini.archlinux.org
Wed Oct 20 11:14:28 UTC 2021


    Date: Wednesday, October 20, 2021 @ 11:14:27
  Author: dvzrv
Revision: 1031391

upgpkg: python-authheaders 0.14.1-1: Upgrade to 0.14.1.

Use upstream provided methods to provide PSL and PSD DMARC lists.

Modified:
  python-authheaders/trunk/PKGBUILD

----------+
 PKGBUILD |   24 ++++++++++--------------
 1 file changed, 10 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-10-20 11:03:14 UTC (rev 1031390)
+++ PKGBUILD	2021-10-20 11:14:27 UTC (rev 1031391)
@@ -2,8 +2,8 @@
 
 _name=authheaders
 pkgname=python-authheaders
-pkgver=0.13.0
-pkgrel=3
+pkgver=0.14.1
+pkgrel=1
 pkgdesc="Library for the generation of email authentication headers"
 arch=('any')
 url="https://github.com/ValiMail/authentication-headers"
@@ -14,17 +14,22 @@
 checkdepends=('python-pytest')
 source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz"{,.asc}
         psddmarc.csv::https://www.psddmarc.org/psddmarc-participants.csv)
-sha512sums=('dfaccd9dedea8bebc22b831c481c733590e11a3483e42b45f0b6329bdaa98eec0644faf8da8b92c56c2d48a43eec9c52f8ea9a3c67ae841c46a7085cf0572177'
+sha512sums=('842881a6d2c3d192664960a9d1954f6e2c267cc6b07d7567f019869d07c1e40fc12275c381e90ea94559bd43a9d2e183d35e80d0ee9a861e80519a98daf2a699'
             'SKIP'
-            'f9bfa3ad0090c08b796c5a8cb1d16f2ec4069632f89469f3594c3770778ec66bcada09f1c813badc992ddad9d19fc25fb63c83fe70243c0d260de07f44219498')
+            'f3840255c1901111a563ca87ae155853d7e00d82a7e479520b789779c3c0d7273123a52abb419085d0561f25ffdaca70de76167935189a1cc20189d1f2f60b8a')
 validpgpkeys=('E7729BFFBE85400FEEEE23B178D7DEFB9AD59AF1') # Donald Scott Kitterman <scott at kitterman.com>
 
 prepare() {
   mv -v "${_name}-${pkgver}" "$pkgname-$pkgver"
+  cd "$pkgname-$pkgver"
+  # embed psddmarc.csv: https://github.com/ValiMail/authentication-headers/issues/4
+  cp -av ../psddmarc.csv "${_name}/"
 }
 
 build() {
   cd "$pkgname-$pkgver"
+  # use the system provided publicsuffix list (PSL)
+  python setup.py psllocal --path='/usr/share/publicsuffix/public_suffix_list.dat'
   python setup.py build
 }
 
@@ -37,16 +42,7 @@
 package() {
   cd "$pkgname-$pkgver"
   local python_stdlib_basepath="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
-  python setup.py install --skip-build \
-    --optimize=1 \
-    --prefix=/usr \
-    --root="${pkgdir}"
-  # use the system provided publicsuffix list (PSL)
-  ln -svf /usr/share/publicsuffix/public_suffix_list.dat \
-    "${pkgdir}/$python_stdlib_basepath/site-packages/authheaders/public_suffix_list.txt"
-  # the psddmarc-participants.csv seemingly needs to be embedded:
-  # https://github.com/ValiMail/authentication-headers/issues/4
-  install -vDm 644 ../psddmarc.csv -t "${pkgdir}/$python_stdlib_basepath/site-packages/authheaders/"
+  python setup.py install --optimize=1 --root="${pkgdir}"
   install -vDm 644 {CHANGES,README.md} -t "${pkgdir}/usr/share/doc/${pkgname}"
   install -vDm 644 COPYING -t "${pkgdir}/usr/share/licenses/${pkgname}"
 }



More information about the arch-commits mailing list