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

Jelle van der Waa jelle at archlinux.org
Fri Aug 7 16:17:40 UTC 2020


    Date: Friday, August 7, 2020 @ 16:17:40
  Author: jelle
Revision: 671539

Add python2-dnspython as a seperate package

Added:
  python2-dnspython/trunk/PKGBUILD

----------+
 PKGBUILD |   39 +++++++++++++++++++++++++++++++++++++++
 1 file changed, 39 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-07 16:17:40 UTC (rev 671539)
@@ -0,0 +1,39 @@
+# Maintainer: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Mathijs Kadijk <maccain13 at gmail.com>
+
+pkgname=python2-dnspython
+pkgver=1.16.0
+pkgrel=3
+pkgdesc="A DNS toolkit for Python"
+arch=('any')
+url="http://www.dnspython.org"
+license=('ISC')
+depends=('python2')
+makedepends=('python2-setuptools')
+checkdepends=('python2-idna' 'python2-pycryptodome' 'python2-ecdsa' 'python2-typing')
+optdepends=('python2-ecdsa: DNSSEC support'
+            'python2-pycryptodome: DNSSEC support'
+            'python2-idna: support for updated IDNA 2008')
+source=("http://www.dnspython.org/kits/${pkgver}/dnspython-${pkgver}.tar.gz"{,.asc})
+sha256sums=('4bf5c5c12a4478ee7860ab176659cf64c4899ee76752d826b082f8af723c5cf9'
+            'SKIP')
+validpgpkeys=('A580DEE052FEC78D8ACF383DF24B3AFC8CA2F5C7') # Bob Halley <halley at dnspython.org>
+
+build() {
+    cd "${srcdir}"/dnspython-${pkgver}
+
+    python2 setup.py build
+}
+
+check() {
+    cd "${srcdir}"/dnspython-${pkgver}
+
+    python2 setup.py test
+}
+
+package() {
+    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