From 2f1ca09b16afa51ea64fcbc0e8271e0842b27d71 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 6 Nov 2013 21:26:13 +0000 Subject: main/zip: apply patches in prepare section --- main/zip/APKBUILD | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'main/zip/APKBUILD') diff --git a/main/zip/APKBUILD b/main/zip/APKBUILD index 835f49757c..8b7d012beb 100644 --- a/main/zip/APKBUILD +++ b/main/zip/APKBUILD @@ -15,12 +15,18 @@ source="ftp://ftp.info-${pkgname}.org/pub/info${pkgname}/src/${pkgname}30.zip 30-zip-3.0-pic.patch" _builddir="$srcdir"/${pkgname}30 -build () { +prepare() { + local i cd "$_builddir" - for i in ../*.patch; do - msg "Applying $i" - patch -p0 < $i || return 1 + for i in $source; do + case $i in + *.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;; + esac done +} + +build () { + cd "$_builddir" make -f unix/Makefile LOCAL_ZIP="${CFLAGS} ${CPPFLAGS}" prefix=/usr generic || return 1 } -- cgit v1.2.3