[arch-commits] Commit in zip/trunk (PKGBUILD)

Gaetan Bisson bisson at archlinux.org
Sun Jan 18 05:56:41 UTC 2015


    Date: Sunday, January 18, 2015 @ 06:56:41
  Author: bisson
Revision: 229509

fix FS#43236

Modified:
  zip/trunk/PKGBUILD

----------+
 PKGBUILD |   14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2015-01-18 04:39:25 UTC (rev 229508)
+++ PKGBUILD	2015-01-18 05:56:41 UTC (rev 229509)
@@ -5,7 +5,7 @@
 pkgname=zip
 pkgver=3.0
 _pkgver=${pkgver/./}
-pkgrel=4
+pkgrel=5
 pkgdesc='Compressor/archiver for creating and modifying zipfiles'
 url='http://www.info-zip.org/Zip.html'
 arch=('i686' 'x86_64')
@@ -16,11 +16,17 @@
 
 options=('!makeflags')
 
+prepare() {
+	cd "${srcdir}/${pkgname}${_pkgver}"
+	sed \
+		-e "/^CFLAGS =/s/\$/ $CPPFLAGS $CFLAGS/" \
+		-e "/^LFALGS1 =/s/\$/ $LDFLAGS/" \
+		-i unix/Makefile
+}
+
 build() {
 	cd "${srcdir}/${pkgname}${_pkgver}"
-	make -f unix/Makefile prefix=/usr \
-		LOCAL_ZIP="$CFLAGS $CPPFLAGS $LDFLAGS" \
-		generic_gcc
+	make -f unix/Makefile prefix=/usr generic_gcc
 }
 
 package() {



More information about the arch-commits mailing list