summaryrefslogtreecommitdiff
path: root/extra/netpbm/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/netpbm/PKGBUILD')
-rw-r--r--extra/netpbm/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/extra/netpbm/PKGBUILD b/extra/netpbm/PKGBUILD
index 8eca87d59..3b8897594 100644
--- a/extra/netpbm/PKGBUILD
+++ b/extra/netpbm/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id: PKGBUILD 178515 2013-02-24 21:47:43Z eric $
+# $Id: PKGBUILD 184413 2013-05-06 19:38:51Z foutrelis $
# Maintainer: Kevin Piche <kevin@archlinux.org>
pkgname=netpbm
pkgver=10.61.02
-pkgrel=1
+pkgrel=2
pkgdesc="A toolkit for manipulation of graphic images"
arch=('i686' 'x86_64' 'mips64el')
license=('custom' 'BSD' 'GPL' 'LGPL')
@@ -33,8 +33,9 @@ mksource() {
rm -r advanced
}
-build() {
+prepare() {
cd "${srcdir}/advanced"
+
patch -p1 < ../netpbm-CAN-2005-2471.patch
patch -p1 < ../netpbm-security-code.patch
patch -p1 < ../netpbm-security-scripts.patch
@@ -48,10 +49,14 @@ build() {
echo 'JPEGLIB = libjpeg.so' >> config.mk
echo 'PNGLIB = libpng.so' >> config.mk
echo 'ZLIB = libz.so' >> config.mk
-
+
sed -i 's|misc|share/netpbm|' common.mk
sed -i 's|/link|/lib|' lib/Makefile
sed -i 's|install.manweb install.man|install.man|' GNUmakefile
+}
+
+build() {
+ cd "${srcdir}/advanced"
make