updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libpng12 / PKGBUILD
blobfb90e3b0c288e8dd1ad030156d4e9af97db3de1f
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>
7 pkgname=libpng12
8 _realname=libpng
9 pkgver=1.2.46
10 pkgrel=2
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"
14 license=('custom')
15 depends=('zlib')
16 options=('!libtool')
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")
20 build() {
21   cd "${srcdir}/${_realname}-${pkgver}"
23   patch -Np0 -i "${srcdir}/libpng-${pkgver}-apng.patch"
25   libtoolize --force --copy
26   aclocal
27   autoconf
28   automake --add-missing
30   ./configure --prefix=/usr
32   make ECHO=echo
35 package() {
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')