APKBUILD 1.59 KB
Newer Older
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
3
pkgname=libpng
4
pkgver=1.6.9
5
_apngver=$pkgver
6
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
7 8
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
9
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
10
license="GPL"
11
depends=
12 13
depends_dev="zlib-dev"
makedepends="$depends_dev gawk"
Carlo Landmeter's avatar
Carlo Landmeter committed
14
subpackages="$pkgname-doc $pkgname-dev"
15
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
16
	http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz
17 18 19 20 21 22 23 24
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	gunzip -c "$srcdir"/libpng-$pkgver-apng.patch.gz | patch -p1 || return 1
}
25

Carlo Landmeter's avatar
Carlo Landmeter committed
26
build() {
27
	cd "$_builddir"
28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
32
		|| return 1
33 34 35 36 37
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Carlo Landmeter's avatar
Carlo Landmeter committed
38
	make DESTDIR="$pkgdir" install
39
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
40
	rm -f "$pkgdir"/usr/lib/*.la
Carlo Landmeter's avatar
Carlo Landmeter committed
41 42
}

43 44 45 46 47 48
md5sums="edd26ef2bf561786b2185f2b8afda78b  libpng-1.6.9.tar.gz
d784762a28f6a6c697a162873807f479  libpng-1.6.9-apng.patch.gz"
sha256sums="58c976f5aed8ca7f06811622268af46cbdb8ed48e75c8d18b1b1950f7a00c79a  libpng-1.6.9.tar.gz
a113ee44b68f0bc40d6d1ca0ce81ac680d394e455d1c867aee7eab0196f1c150  libpng-1.6.9-apng.patch.gz"
sha512sums="00b7664d4246eb358b3778102a4502e75e645bf603d91e957e9aa94aead9a122aa7d396bf48ea7438c725fa43f5004ecb7dadd583a7405916d447da47bb49be3  libpng-1.6.9.tar.gz
d0af1a4853a7f0abc13647aefd269ccf65b19e366f40720a5b47c9b8e3d931e9c72604882df9e0eb6a25e46d626afc20fd04b7b9efa147da1f1bbcd6c9e22771  libpng-1.6.9-apng.patch.gz"