summaryrefslogtreecommitdiff
path: root/multilib/lib32-libpng/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'multilib/lib32-libpng/PKGBUILD')
-rw-r--r--multilib/lib32-libpng/PKGBUILD13
1 files changed, 9 insertions, 4 deletions
diff --git a/multilib/lib32-libpng/PKGBUILD b/multilib/lib32-libpng/PKGBUILD
index 0ec8a0231..4d3a66edb 100644
--- a/multilib/lib32-libpng/PKGBUILD
+++ b/multilib/lib32-libpng/PKGBUILD
@@ -1,4 +1,4 @@
-# $Id: PKGBUILD 65208 2012-02-20 11:15:22Z ibiru $
+# $Id: PKGBUILD 66920 2012-03-01 16:29:40Z ibiru $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: Travis Willard <travis@archlinux.org>
@@ -8,7 +8,8 @@ _pkgbasename=libpng
pkgname=lib32-$_pkgbasename
pkgver=1.5.9
_apngver=1.5.9
-pkgrel=1
+_libversion=15
+pkgrel=2
pkgdesc="A collection of routines used to create PNG format graphics files (32-bit)"
arch=('x86_64')
url="http://www.libpng.org/pub/png/libpng.html"
@@ -32,7 +33,7 @@ build() {
# see http://sourceforge.net/projects/libpng-apng/
patch -p1 -i "${srcdir}/libpng-${_apngver}-apng.patch"
- ./configure --prefix=/usr --libdir=/usr/lib32
+ ./configure --prefix=/usr --libdir=/usr/lib32 --program-suffix=-32
make
}
@@ -44,7 +45,11 @@ package() {
cd contrib/pngminus
make PNGLIB="-L${pkgdir}/usr/lib32 -lpng" -f makefile.std png2pnm pnm2png
- rm -rf "${pkgdir}"/usr/{include,share,bin}
+ rm -rf "${pkgdir}"/usr/{include,share}
+
+ rm "$pkgdir/usr/bin/libpng-config"
+ ln -s "libpng${_libversion}-config-32" "$pkgdir/usr/bin/libpng-config-32"
+
mkdir -p "$pkgdir/usr/share/licenses"
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
}