updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / lib32-libpng12 / PKGBUILD
blobd381aaecbfe9da1cd17406210992db4076b68672
1 # Maintainer: TryA <tryagainprod@gmail.com>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: dorphell <dorphell@archlinux.org>
4 # Contributor: Travis Willard <travis@archlinux.org>
5 # Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
7 _pkgbasename=libpng
8 pkgname=lib32-libpng12
9 pkgver=1.2.46
10 pkgrel=2
11 pkgdesc="A collection of routines used to create PNG format graphics files (32-bit, 1.2 branch)"
12 arch=('x86_64')
13 url="http://www.libpng.org/pub/png/libpng.html"
14 license=('custom')
15 depends=('lib32-zlib')
16 makedepends=('gcc-multilib')
17 options=('!libtool')
18 source=("http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2"
19         "http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-${pkgver}-apng.patch.gz")
20 md5sums=('e8b43dc78ef95b3949af7f961d76874b'
21          'ca4df2ede682d45d9651f25aeb4c1630')
23 build() {
24   export CC="gcc -m32"
25   export CXX="g++ -m32"
26   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
28   cd "${srcdir}/${_pkgbasename}-${pkgver}"
30   # Add animated PNG (apng) support
31   # see http://sourceforge.net/projects/libpng-apng/
32   patch -Np1 -i "${srcdir}/libpng-${pkgver}-apng.patch"
34   libtoolize --force --copy
35   aclocal
36   autoconf
37   automake --add-missing
39   ./configure --prefix=/usr --libdir=/usr/lib32
40   make
43 package() {
44   cd "${srcdir}/${_pkgbasename}-${pkgver}"
45   make DESTDIR="${pkgdir}" install
47   rm -f ${pkgdir}/usr/lib32/{libpng.so,libpng.a,pkgconfig/libpng.pc}
48   rm -rf ${pkgdir}/usr/{include,share,bin}
50   mkdir -p "${pkgdir}/usr/share/licenses"
51   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"