# Lib32 Packages for Chakra, part of chakra-project.org # # maintainer (x86_64): Giuseppe CalĂ  # maintainer (x86_64): Anke Boersma _pkgbasename=libpng pkgname=lib32-libpng12 pkgver=1.2.44 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" license=('custom') depends=('lib32-zlib') makedepends=('gcc-multilib') options=('!libtool') source=("http://downloads.sourceforge.net/sourceforge/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.bz2" "http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-${pkgver}-apng.patch.gz") md5sums=('e3ac7879d62ad166a6f0c7441390d12b' '6f114b5a6e9376ea8b391e04c9fb1413') build() { export CC="gcc -m32" export CXX="g++ -m32" export PKG_CONFIG_PATH="/usr/lib32/pkgconfig" cd "${srcdir}/${_pkgbasename}-${pkgver}" # Add animated PNG (apng) support # see http://sourceforge.net/projects/libpng-apng/ patch -Np1 -i "${srcdir}/libpng-${pkgver}-apng.patch" libtoolize --force --copy aclocal autoconf automake --add-missing ./configure --prefix=/usr --libdir=/usr/lib32 make } package() { cd "${srcdir}/${_pkgbasename}-${pkgver}" make DESTDIR="${pkgdir}" install rm -f ${pkgdir}/usr/lib32/{libpng.so,libpng.a,pkgconfig/libpng.pc} rm -rf ${pkgdir}/usr/{include,share,bin} mkdir -p "${pkgdir}/usr/share/licenses" install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }