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

Eli Schwartz eschwartz at archlinux.org
Sun Dec 9 19:58:55 UTC 2018


    Date: Sunday, December 9, 2018 @ 19:58:53
  Author: eschwartz
Revision: 413074

upgpkg: python-dnspython 1.16.0-1

upstream release
split build and package
add testsuite
correct license
add optdepends

Modified:
  python-dnspython/trunk/PKGBUILD

----------+
 PKGBUILD |   52 +++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 37 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-09 19:58:26 UTC (rev 413073)
+++ PKGBUILD	2018-12-09 19:58:53 UTC (rev 413074)
@@ -3,30 +3,52 @@
 
 pkgname=(python-dnspython python2-dnspython)
 pkgbase=python-dnspython
-pkgver=1.15.0
-pkgrel=3
+pkgver=1.16.0
+pkgrel=1
 pkgdesc="A DNS toolkit for Python"
 arch=('any')
 url="http://www.dnspython.org"
-license=('BSD')
+license=('ISC')
 makedepends=('python-setuptools' 'python2-setuptools')
-validpgpkeys=('A580DEE052FEC78D8ACF383DF24B3AFC8CA2F5C7')
-source=(http://www.dnspython.org/kits/$pkgver/dnspython-$pkgver.tar.gz{,.asc})
-sha256sums=('11598ae5735746e63921f8eebdfdee4a2e7d0ba842ebd57ba02682d4aed8244b'
+checkdepends=('python-idna' 'python-pycryptodome' 'python-ecdsa'
+              'python2-idna' 'python2-pycryptodome' 'python2-ecdsa' 'python2-typing')
+source=("http://www.dnspython.org/kits/${pkgver}/dnspython-${pkgver}.tar.gz"{,.asc})
+sha256sums=('4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9'
             'SKIP')
+validpgpkeys=('A580DEE052FEC78D8ACF383DF24B3AFC8CA2F5C7') # Bob Halley <halley at dnspython.org>
 
-package_python2-dnspython() {
-depends=('python2')
+build() {
+    cd "${srcdir}"/dnspython-${pkgver}
 
-  cd "$srcdir"/dnspython-$pkgver
-  python2 setup.py install --root="$pkgdir"
-  install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    python setup.py build
+    python2 setup.py build
 }
 
+check() {
+    cd "${srcdir}"/dnspython-${pkgver}
+
+    python setup.py test
+    python2 setup.py test
+}
+
 package_python-dnspython() {
-depends=('python')
+    depends=('python')
+    optdepends=('python-ecdsa: DNSSEC support'
+                'python-pycryptodome: DNSSEC support'
+                'python-idna: support for updated IDNA 2008')
+    cd "${srcdir}"/dnspython-${pkgver}
 
-  cd "$srcdir"/dnspython-$pkgver
-  python setup.py install --root="$pkgdir"
-  install -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+    python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
 }
+
+package_python2-dnspython() {
+    depends=('python2')
+    optdepends=('python2-ecdsa: DNSSEC support'
+                'python2-pycryptodome: DNSSEC support'
+                'python2-idna: support for updated IDNA 2008')
+    cd "${srcdir}"/dnspython-${pkgver}
+
+    python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+    install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}



More information about the arch-commits mailing list