aboutsummaryrefslogtreecommitdiffstats
path: root/main/zip
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-02-10 16:16:20 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2018-02-16 17:04:45 +0000
commit4c04396cfb5122619d0fa40a8f455e9542b02181 (patch)
treea43842f2dc6c81343de811221dc055f2b0ad2375 /main/zip
parent408014d19e6a3aeb725c5a1067cbc0d83655571c (diff)
downloadaports-4c04396cfb5122619d0fa40a8f455e9542b02181.tar.gz
aports-4c04396cfb5122619d0fa40a8f455e9542b02181.tar.bz2
aports-4c04396cfb5122619d0fa40a8f455e9542b02181.tar.xz
main/zip: modernise, fix license, mark no tests
Diffstat (limited to 'main/zip')
-rw-r--r--main/zip/APKBUILD26
1 files changed, 9 insertions, 17 deletions
diff --git a/main/zip/APKBUILD b/main/zip/APKBUILD
index adda514326..a4e335a831 100644
--- a/main/zip/APKBUILD
+++ b/main/zip/APKBUILD
@@ -1,11 +1,12 @@
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=zip
pkgver=3.0
-pkgrel=4
+pkgrel=5
pkgdesc="Creates PKZIP-compatible .zip files"
url="http://www.info-zip.org/pub/infozip/Zip.html"
arch="all"
-license="Custom"
+options="!check" # No test suite.
+license="Info-ZIP"
depends=""
makedepends=""
subpackages="$pkgname-doc"
@@ -14,25 +15,16 @@ source="ftp://ftp.info-${pkgname}.org/pub/info${pkgname}/src/${pkgname}30.zip
20-zip-3.0-exec-stack.patch
30-zip-3.0-pic.patch"
-_builddir="$srcdir"/${pkgname}30
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/${pkgname}30
-build () {
- cd "$_builddir"
- make -f unix/Makefile LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" prefix=/usr generic || return 1
+build() {
+ cd "$builddir"
+ make -f unix/Makefile LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" prefix=/usr generic
}
package() {
- cd "$_builddir"
- make -f unix/Makefile prefix=${pkgdir}/usr MANDIR=${pkgdir}/usr/share/man install || return 1
+ cd "$builddir"
+ make -f unix/Makefile prefix=${pkgdir}/usr MANDIR=${pkgdir}/usr/share/man install
install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}