summaryrefslogtreecommitdiff
path: root/community/libpng12/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-11-15 01:46:35 -0800
committerroot <root@rshg054.dnsready.net>2012-11-15 01:46:35 -0800
commit2264379d37a6a00a3ecec1fd03c5dd4796078d49 (patch)
treec7d44781aab3d74058a981f8e9035eee06f8f5bc /community/libpng12/PKGBUILD
parent6fa5f08247aef1f757f376ef12bd4a6257c124f2 (diff)
Thu Nov 15 01:46:22 PST 2012
Diffstat (limited to 'community/libpng12/PKGBUILD')
-rw-r--r--community/libpng12/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/libpng12/PKGBUILD b/community/libpng12/PKGBUILD
new file mode 100644
index 000000000..968cd9123
--- /dev/null
+++ b/community/libpng12/PKGBUILD
@@ -0,0 +1,50 @@
+# $Id: PKGBUILD 79866 2012-11-14 07:22:13Z dwallace $
+# Maintainer: Daniel Wallace <danielwallace at gtmanfred dot com>
+# Contributor: dorphell <archlinux.org: dorphell>
+# Contributor: Travis Willard <archlinux.org: travis>
+# Contributor: Douglas Soares de Andrade <archlinux.org: douglas>
+# Contributor: Jesse Jaara <gmail.com: jesse.jaara>
+
+pkgname=libpng12
+_realname=libpng
+pkgver=1.2.50
+pkgrel=2
+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')
+options=('!libtool')
+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}
+
+}
+
+md5sums=('a3e00fccbfe356174ab515b5c00641c7'
+ 'b06ac3f6a6f982abc2036359665e82a9')