# Contributor: Carlo Landmeter # Maintainer: Natanael Copa pkgname=libpng pkgver=1.5.2 pkgrel=2 pkgdesc="Portable Network Graphics library" url="http://www.libpng.org/" arch="all" license="GPL" depends= makedepends="zlib-dev gawk" subpackages="$pkgname-doc $pkgname-dev" source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" depends_dev="zlib-dev" build() { cd "$srcdir/$pkgname-$pkgver" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir" install install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="31d448eb93a1646359a23f1b23434ab3 libpng-1.5.2.tar.gz"