Commit f16d011f authored by Sören Tempel's avatar Sören Tempel

main/libpng: upgrade to 1.6.22

parent ffe1d1f0
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.21
pkgver=1.6.22
_apngver=$pkgver
pkgrel=0
pkgdesc="Portable Network Graphics library"
......@@ -16,7 +16,7 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz
"
_builddir="$srcdir/$pkgname-$pkgver"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
gunzip -c "$srcdir"/libpng-$pkgver-apng.patch.gz | patch -p1 || return 1
......@@ -28,19 +28,23 @@ build() {
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
|| return 1
make
make || return 1
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
install -Dm644 LICENSE \
"$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
}
md5sums="aca36ec8e0a3b406a5912243bc243717 libpng-1.6.21.tar.gz
360346394543ec0a880f61830541608f libpng-1.6.21-apng.patch.gz"
sha256sums="b36a3c124622c8e1647f360424371394284f4c6c4b384593e478666c59ff42d3 libpng-1.6.21.tar.gz
6da70e2526fe91c3379592546d2f14c0dfef8f04e2b338dddd5dc9ef45618c73 libpng-1.6.21-apng.patch.gz"
sha512sums="033bbac08e5415500289dc41a854f1a2b1b61923b62bcdccb6f5d9c0f1efb95924712f2b5ec370bfbea30ec3deab5883a308ee78709a81095c748359a63373ae libpng-1.6.21.tar.gz
144bf07770d5584ea78648b65468a9acd40909b34c501ec4d91fc53ddf8ca85c99e2fcb1b245fce54d045b60ad2e1da575c27ad6ca566358643b4573176f05b2 libpng-1.6.21-apng.patch.gz"
md5sums="4a84ef93939d18d589e8314ac742423a libpng-1.6.22.tar.gz
910526e60f82d3f91ffe3fa9e247216e libpng-1.6.22-apng.patch.gz"
sha256sums="7944056621477eca2eba31cf1e99fa484721216a8af03c124426fccb37665df9 libpng-1.6.22.tar.gz
8fdcd293873ae88364e7d58b6e4bfc49ff1d8ac6663abc207992dd2b27e16e8b libpng-1.6.22-apng.patch.gz"
sha512sums="06ccba6398e8cb22f632c47972a7bc64e9ed3e41c85fbfaddd0f39b6bad0848d333e1e8df0d7e9bbb44854172991559fab7b1d79cc6be44342dce3a49ba6eed6 libpng-1.6.22.tar.gz
d55f51cccf99748cd68d469dd83db25b2913242f7019e7fb97b635b1a639ef7349055884e94155fb5805046d1f9b6e90e29de2bf08f38af691deb6c58e229016 libpng-1.6.22-apng.patch.gz"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment