diff options
-rw-r--r-- | main/unzip/APKBUILD | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/main/unzip/APKBUILD b/main/unzip/APKBUILD index 81a8f80a6d..2b480f842f 100644 --- a/main/unzip/APKBUILD +++ b/main/unzip/APKBUILD @@ -2,35 +2,36 @@ # Maintainer: Timo Teräs <timo.teras@iki.fi> pkgname=unzip pkgver=6.0 +_pkgver=${pkgver//./} pkgrel=2 pkgdesc="Extract PKZIP-compatible .zip files" url="http://www.info-zip.org/UnZip.html" arch="all" -license="Custom" -depends="" -makedepends="" +license="custom" subpackages="$pkgname-doc" -# normally ftp://ftp.info-zip.org/pub/infozip/src/${pkgname}60.zip -source="https://dev.alpinelinux.org/archive/unzip/${pkgname}60.tgz +# normally ftp://ftp.info-zip.org/pub/infozip/src/$pkgname$_pkgver.zip +source="https://dev.alpinelinux.org/archive/unzip/$pkgname$_pkgver.tgz 10-unzip-handle-pkware-verify.patch 20-unzip-uidgid-fix.patch unzip-6.0-heap-overflow-infloop.patch " +builddir="$srcdir/$pkgname$_pkgver" -builddir="$srcdir"/${pkgname}60 build() { cd "$builddir" + make -f unix/Makefile \ CC="${CHOST}-gcc" \ LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" \ - prefix=/usr generic || return 1 + prefix=/usr generic } package() { cd "$builddir" + make -f unix/Makefile \ MANDIR=${pkgdir}/usr/share/man/man1/ \ - prefix=${pkgdir}/usr install || return 1 + prefix=${pkgdir}/usr install install -Dm644 LICENSE \ "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } |