# $Id: PKGBUILD 99875 2013-10-31 02:13:23Z allan $ # Maintainer: Daniel Wallace # Contributor: dorphell # Contributor: Travis Willard # Contributor: Douglas Soares de Andrade # Contributor: Jesse Jaara pkgname=libpng12 _realname=libpng pkgver=1.2.50 pkgrel=3 pkgdesc="A collection of routines used to create PNG format graphics files" arch=('i686' 'x86_64') url="http://www.libpng.org/pub/png/libpng.html" license=('custom') depends=('zlib') source=("http://sourceforge.net/projects/libpng/files/libpng-${pkgver}.tar.xz" "http://sourceforge.net/projects/apng/files/libpng/libpng12/libpng-${pkgver}-apng.patch.gz") build() { cd "${srcdir}/${_realname}-${pkgver}" patch -Np0 -i "${srcdir}/libpng-${pkgver}-apng.patch" libtoolize --force --copy aclocal autoconf automake --add-missing ./configure --prefix=/usr make ECHO=echo } package() { cd "${srcdir}/${_realname}-${pkgver}" make ECHO=echo DESTDIR="${pkgdir}" install rm -rf "${pkgdir}/usr/share" rm -rf "${pkgdir}/usr/bin/libpng-config" rm -rf "${pkgdir}/usr/lib/"{libpng.so,libpng.a} rm -fr "${pkgdir}/usr/lib/pkgconfig/libpng.pc" rm -rf "${pkgdir}/usr/include/"{pngconf.h,png.h} install -Dm644 LICENSE $pkgdir/usr/share/licenses/libpng12/LICENSE } md5sums=('a3e00fccbfe356174ab515b5c00641c7' 'b06ac3f6a6f982abc2036359665e82a9')