diff options
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 9 |
2 files changed, 8 insertions, 5 deletions
@@ -1,6 +1,6 @@ pkgbase = knot-git pkgdesc = High-performance authoritative-only DNS server, development build - pkgver = 2.8.dev.1551283912.4015475b0 + pkgver = 3.0.dev.1577784203.e80907080 pkgrel = 1 url = https://www.knot-dns.cz/ arch = x86_64 @@ -21,7 +21,7 @@ pkgbase = knot-git depends = fstrm depends = protobuf-c depends = libmaxminddb - provides = knot=2.8.dev.1551283912.4015475b0 + provides = knot=3.0.dev.1577784203.e80907080 conflicts = knot options = !strip options = debug @@ -6,7 +6,7 @@ # Contributor: Otto Sabart <seberm[at]gmail[dot]com> pkgname=knot-git -pkgver=2.8.dev.1551283912.4015475b0 +pkgver=3.0.dev.1577784203.e80907080 pkgrel=1 pkgdesc="High-performance authoritative-only DNS server, development build" arch=('x86_64') @@ -24,7 +24,7 @@ sha256sums=('SKIP') options=(!strip debug) _gitname='knot-dns' -pkgver() { +prepare() { cd "${_gitname}" ./autogen.sh &>/dev/null ./configure \ @@ -40,7 +40,10 @@ pkgver() { --enable-systemd \ --enable-reuseport \ --disable-silent-rules &>/dev/null - grep 'PACKAGE_VERSION' src/config.h | sed 's/.*"\(.*\)"/\1/' +} + +pkgver() { + grep 'PACKAGE_VERSION' "${_gitname}/src/config.h" | sed 's/.*"\(.*\)"/\1/' } build() { |