diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2013-11-06 21:26:13 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-11-20 10:27:31 +0000 |
commit | 2f1ca09b16afa51ea64fcbc0e8271e0842b27d71 (patch) | |
tree | 0f22592a91271e99318045c936395d232524be20 /main | |
parent | 7d769a64f06368978748e06bd6d8f1d2052a3ecf (diff) | |
download | aports-2f1ca09b16afa51ea64fcbc0e8271e0842b27d71.tar.bz2 aports-2f1ca09b16afa51ea64fcbc0e8271e0842b27d71.tar.xz |
main/zip: apply patches in prepare section
Diffstat (limited to 'main')
-rw-r--r-- | main/zip/APKBUILD | 14 |
1 files changed, 10 insertions, 4 deletions
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 } |