diff options
-rw-r--r-- | main/libpng/APKBUILD | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/main/libpng/APKBUILD b/main/libpng/APKBUILD index 3fc9f96825..0f0c01eeab 100644 --- a/main/libpng/APKBUILD +++ b/main/libpng/APKBUILD @@ -2,23 +2,30 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=libpng pkgver=1.5.5 -pkgrel=0 +pkgrel=1 pkgdesc="Portable Network Graphics library" url="http://www.libpng.org/" arch="all" license="GPL" depends= -makedepends="zlib-dev gawk" +depends_dev="zlib-dev" +makedepends="$depends_dev gawk" subpackages="$pkgname-doc $pkgname-dev" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" +source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz + http://downloads.sourceforge.net/project/libpng-apng/libpng-devel/$pkgver/libpng-$pkgver-apng.patch.gz + " + +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + cd "$_builddir" + gunzip -c "$srcdir"/libpng-$pkgver-apng.patch.gz | patch -p1 || return 1 +} -depends_dev="zlib-dev" build() { - cd "$srcdir/$pkgname-$pkgver" + cd "$_builddir" ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --mandir=/usr/share/man \ - --infodir=/usr/share/info + || return 1 make } @@ -29,4 +36,5 @@ package() { rm -f "$pkgdir"/usr/lib/*.la } -md5sums="003bcac022125029bae4818d74c42a94 libpng-1.5.5.tar.gz" +md5sums="003bcac022125029bae4818d74c42a94 libpng-1.5.5.tar.gz +4c4e8c1b5beacc3e0cf8caa84489d223 libpng-1.5.5-apng.patch.gz" |