diff options
Diffstat (limited to 'testing/dnssec-tools/APKBUILD')
-rw-r--r-- | testing/dnssec-tools/APKBUILD | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/testing/dnssec-tools/APKBUILD b/testing/dnssec-tools/APKBUILD index b07abe1ad0..04f35d3f53 100644 --- a/testing/dnssec-tools/APKBUILD +++ b/testing/dnssec-tools/APKBUILD @@ -12,16 +12,12 @@ makedepends="autoconf automake bind-dev libtool libressl-dev perl-graphviz perl- source="http://distfiles.alpinelinux.org/distfiles/dnssec-tools-$pkgver.tar.gz" subpackages="$pkgname-dev $pkgname-doc" -_builddir="${srcdir}/${pkgname}-${pkgver}" +builddir="${srcdir}/${pkgname}-${pkgver}" prepare() { local pf - cd "${_builddir}" - for pf in $source; do - case $pf in - *.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;; - esac - done + cd "$builddir" + default_prepare sed -e '/^maninstall:/,+3s:$(MKPATH) $(mandir)/$(man1dir):$(MKPATH) $(DESTDIR)/$(mandir)/$(man1dir):' \ -i Makefile.in || die sed -e 's:/usr/local/etc:/etc:g' \ @@ -32,7 +28,7 @@ prepare() { } build() { - cd "${_builddir}" + cd "$builddir" CFLAGS="$CFLAGS -D_LARGEFILE64_SOURCE=1" ./configure \ --prefix=/usr \ @@ -46,10 +42,10 @@ build() { } package() { - cd "${_builddir}" - mkdir -p "${pkgdir}"/usr/share/man/man1 - make DESTDIR="${pkgdir}" install || return 1 - chrpath -d "${pkgdir}"/usr/bin/dt-* + cd "$builddir" + mkdir -p "$pkgdir"/usr/share/man/man1 + make DESTDIR="$pkgdir" install || return 1 + chrpath -d "$pkgdir"/usr/bin/dt-* } md5sums="b4c76b325c380780682a548730d3e09a dnssec-tools-2.1.tar.gz" |