Package Details: python-unbound 1.10.1-1

Git Clone URL: https://aur.archlinux.org/python-unbound.git (read-only, click to copy)
Package Base: python-unbound
Description: Validating, recursive, and caching DNS resolver: python binding
Upstream URL: https://unbound.net/
Licenses: custom:BSD
Submitter: tohojo
Maintainer: tohojo
Last Packager: tohojo
Votes: 0
Popularity: 0.000000
First Submitted: 2016-07-08 11:51
Last Updated: 2020-06-12 08:52

Latest Comments

HLFH commented on 2020-04-16 10:20

# Maintainer: Toke Høiland-Jørgensen <toke@toke.dk>
# Contributor: Gaetan Bisson <bisson@archlinux.org>
# Contributor: Hisato Tatekura <hisato_tatekura@excentrics.net>
# Contributor: Massimiliano Torromeo <massimiliano DOT torromeo AT google mail service>

pkgname=python-unbound
pkgver=1.10.0
pkgrel=1
pkgdesc='Validating, recursive, and caching DNS resolver: python binding'
url='http://unbound.net/'
license=('custom:BSD')
arch=('any')
options=('!libtool')
depends=('python' 'unbound' 'openssl')
makedepends=('expat' 'swig' 'openssl')
optdepends=('expat: unbound-anchor')
_basename='unbound'
source=("http://unbound.net/downloads/${_basename}-${pkgver}.tar.gz")
sha256sums=('152f486578242fe5c36e89995d0440b78d64c05123990aae16246b7f776ce955')

build() {
    cd "${srcdir}/${_basename}-${pkgver}"

    PYTHON=/usr/bin/python ./configure \
        --prefix=/usr \
        --sysconfdir=/etc \
        --localstatedir=/var \
        --enable-static=no \
        --disable-rpath \
        --with-conf-file=/etc/unbound/unbound.conf \
        --with-pidfile=/var/run/unbound.pid \
                --with-pyunbound

    make
}

package() {
    cd "${srcdir}/${_basename}-${pkgver}"

    make DESTDIR="${pkgdir}" install

        rm -r "${pkgdir}/etc"
        rm -r "${pkgdir}/usr/sbin"
        rm -r "${pkgdir}/usr/include"
        rm -r "${pkgdir}/usr/share"
        rm "${pkgdir}/usr/lib/libunbound.la"
        rm "${pkgdir}/usr/lib/libunbound.so"
        rm "${pkgdir}/usr/lib/libunbound.so.8"
        rm "${pkgdir}/usr/lib/libunbound.so.8.1.7"

    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

HLFH commented on 2020-04-16 10:03

https://github.com/NLnetLabs/unbound/releases

unbound 1.10.0 has been released.

sanerb commented on 2018-12-13 03:53

hi, this needs to be updated. here's a patch.

--- PKGBUILD.orig   2018-12-13 02:43:12.401466144 +0000
+++ PKGBUILD    2018-12-13 05:22:22.004456396 +0000
@@ -4,12 +4,12 @@
 # Contributor: Massimiliano Torromeo <massimiliano DOT torromeo AT google mail service>

 pkgname=python-unbound
-pkgver=1.6.0
+pkgver=1.8.2
 pkgrel=1
 pkgdesc='Validating, recursive, and caching DNS resolver: python binding'
 url='http://unbound.net/'
 license=('custom:BSD')
-arch=('i686' 'x86_64')
+arch=('any')
 options=('!libtool')
 depends=('python' 'unbound' 'openssl')
 makedepends=('expat' 'swig' 'openssl')
@@ -17,7 +17,7 @@
 _basename='unbound'
 validpgpkeys=('EDFAA3F2CA4E6EB05681AF8E9F6F1C2D7E045F8D')
 source=("http://unbound.net/downloads/${_basename}-${pkgver}.tar.gz"{,.asc})
-sha1sums=('9b7606b016b447dc837efc108cee94f3fecf4ede'
+sha1sums=('ccd3a208dd6f9623065f182e9aec4da73ea9b1ad'
           'SKIP')

 build() {
@@ -45,10 +45,8 @@
         rm -r "${pkgdir}/usr/sbin"
         rm -r "${pkgdir}/usr/include"
         rm -r "${pkgdir}/usr/share"
-        rm -r "${pkgdir}/usr/lib/libunbound.la"
-        rm -r "${pkgdir}/usr/lib/libunbound.so"
-        rm -r "${pkgdir}/usr/lib/libunbound.so.2"
-        rm -r "${pkgdir}/usr/lib/libunbound.so.2.4.3"
+        rm -f "${pkgdir}/usr/lib/libunbound.*"
+        rm -rf "${pkgdir}/usr/lib/pkgconfig"

    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
 }