1 # $Id: PKGBUILD 58551 2009-11-08 22:37:12Z eric $
2 # Contributor: dorphell <archlinux.org: dorphell>
3 # Contributor: Travis Willard <archlinux.org: travis>
4 # Contributor: Douglas Soares de Andrade <archlinux.org: douglas>
5 # Maintaoner: Jesse Jaara <gmail.com, mail.ru: jesse.jaara>
11 pkgdesc="A collection of routines used to create PNG format graphics files"
12 arch=('i686' 'x86_64')
13 url="http://www.libpng.org/pub/png/libpng.html"
17 source=("http://sourceforge.net/projects/libpng/files/libpng12/${pkgver}/libpng-${pkgver}.tar.xz"
18 "http://sourceforge.net/projects/apng/files/libpng/libpng12/libpng-${pkgver}-apng.patch.gz")
21 cd "${srcdir}/${_realname}-${pkgver}"
23 patch -Np0 -i "${srcdir}/libpng-${pkgver}-apng.patch"
25 libtoolize --force --copy
28 automake --add-missing
30 ./configure --prefix=/usr
36 cd "${srcdir}/${_realname}-${pkgver}"
38 make ECHO=echo DESTDIR="${pkgdir}" install
40 rm -rf "${pkgdir}/usr/share"
41 rm -rf "${pkgdir}/usr/bin/libpng-config"
42 rm -rf "${pkgdir}/usr/lib/"{libpng.so,libpng.a}
43 rm -fr "${pkgdir}/usr/lib/pkgconfig/libpng.pc"
44 rm -rf "${pkgdir}/usr/include/"{pngconf.h,png.h}
46 md5sums=('4a0a9662710dab35760ab8ecd6835e65'
47 '13b019dac361f88faed8989f0c6d5f04')