diff options
author | Georg Schlisio | 2016-04-21 21:25:28 +0200 |
---|---|---|
committer | Georg Schlisio | 2016-04-21 21:25:28 +0200 |
commit | 895a075612bffaf6fedbe84bdbbf0533772d9a51 (patch) | |
tree | 1f36e3eed34c1fdafcc46cd4add18bbcd3418627 | |
download | aur-895a075612bffaf6fedbe84bdbbf0533772d9a51.tar.gz |
ver. 1.6.17, initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 27 | ||||
-rw-r--r-- | setup.py | 7 |
3 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..9cabb67b847e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = python-ldns + pkgdesc = Python bindings for the ldns library for DNS programming + pkgver = 1.6.17 + pkgrel = 1 + url = https://www.nlnetlabs.nl/projects/ldns/ + arch = x86_64 + arch = i686 + license = BSD + makedepends = python-setuptools + depends = python + depends = ldns + depends = python-ipcalc + source = https://www.nlnetlabs.nl/downloads/ldns/ldns-1.6.17.tar.gz + source = setup.py + md5sums = a79423bcc4129e6d59b616b1cae11e5e + md5sums = 4a96c66b37f26b6d5231c6466cd6503f + +pkgname = python-ldns + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..134f7ae8234a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,27 @@ +# Maintainer: fordprefect <fordprefect@dukun.de> +pkgname="python-ldns" +pkgver=1.6.17 +pkgrel=1 +pkgdesc="Python bindings for the ldns library for DNS programming" +url="https://www.nlnetlabs.nl/projects/ldns/" +arch=('x86_64' 'i686') +license=('BSD') +depends=("python" "ldns" "python-ipcalc") +makedepends=("python-setuptools") +source=("https://www.nlnetlabs.nl/downloads/ldns/ldns-1.6.17.tar.gz" "setup.py") +md5sums=('a79423bcc4129e6d59b616b1cae11e5e' + '4a96c66b37f26b6d5231c6466cd6503f') + +build() { + cd "${srcdir}/ldns-$pkgver" + ./configure --with-pyldns + make +} + +package() { + cd "${srcdir}" + cp ldns-$pkgver/contrib/python/ldns.py . + python setup.py install --root="${pkgdir}" --optimize=1 + install -D ldns-$pkgver/.libs/_ldns.so.$pkgver "${pkgdir}/usr/lib/python3.5/site-packages/_ldns.so.$pkgver" + ln -s _ldns.so.$pkgver "${pkgdir}/usr/lib/python3.5/site-packages/_ldns.so" +} diff --git a/setup.py b/setup.py new file mode 100644 index 000000000000..baf6ed55a308 --- /dev/null +++ b/setup.py @@ -0,0 +1,7 @@ +from distutils.core import setup +setup(name='ldns', + version='1.6.17', + py_modules=['ldns'], + description="Python bindings for the ldns library for DNS programming", + author="nlnetlabs.nl", + ) |