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>
11 pkgdesc="A collection of routines used to create PNG format graphics files (32-bit, 1.2 branch)"
13 url="http://www.libpng.org/pub/png/libpng.html"
15 depends=('lib32-zlib')
16 makedepends=('gcc-multilib')
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')
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
37 automake --add-missing
39 ./configure --prefix=/usr --libdir=/usr/lib32
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"