From 6021759f27b400ec7c77638f1d600a036e03c2a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Wed, 6 Jul 2016 11:56:16 +0200 Subject: main/unzip: fix installation of man pages And cleanup a bit. --- main/unzip/APKBUILD | 31 +++++++++++++------------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/main/unzip/APKBUILD b/main/unzip/APKBUILD index b93e5930f1..a38ffc22f0 100644 --- a/main/unzip/APKBUILD +++ b/main/unzip/APKBUILD @@ -1,7 +1,8 @@ +# Contributor: Sören Tempel # Maintainer: Timo Teräs pkgname=unzip pkgver=6.0 -pkgrel=1 +pkgrel=2 pkgdesc="Extract PKZIP-compatible .zip files" url="http://www.info-zip.org/UnZip.html" arch="all" @@ -13,29 +14,23 @@ source="ftp://ftp.info-zip.org/pub/infozip/src/${pkgname}60.zip 10-unzip-handle-pkware-verify.patch 20-unzip-uidgid-fix.patch unzip-6.0-heap-overflow-infloop.patch - " -_builddir="$srcdir"/${pkgname}60 -prepare() { - local i - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done -} - +builddir="$srcdir"/${pkgname}60 build() { - cd "$_builddir" - make -f unix/Makefile LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" prefix=/usr generic || return 1 + cd "$builddir" + make -f unix/Makefile \ + LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" \ + prefix=/usr generic || return 1 } package() { - cd "$_builddir" - make -f unix/Makefile prefix=${pkgdir}/usr MANDIR=${pkgdir}/usr/share/man install || return 1 - install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + cd "$builddir" + make -f unix/Makefile \ + MANDIR=${pkgdir}/usr/share/man/man1/ \ + prefix=${pkgdir}/usr install || return 1 + install -Dm644 LICENSE \ + "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } md5sums="85da5203f01ab0b9403efef3b9bb4010 unzip60.zip -- cgit v1.2.3