APKBUILD 1.57 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.20
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
	"

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

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

package() {
	cd "$srcdir/$pkgname-$pkgver"
Carlo Landmeter's avatar
Carlo Landmeter committed
37
	make DESTDIR="$pkgdir" install
38
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
39 40
}

41 42 43 44 45 46
md5sums="53166795d924950988a5513d3e605333  libpng-1.6.20.tar.gz
b2186d5e7853890e25b34b03c7f2ddde  libpng-1.6.20-apng.patch.gz"
sha256sums="3d3bdc16f973a62fb1d26464fe2fe19f51dde9b883feff3e059d18ec1457b199  libpng-1.6.20.tar.gz
e63b7ebb68a520ec6fb8a4f0af7fe4a878e14a79fd8cc55ec3d599891355af87  libpng-1.6.20-apng.patch.gz"
sha512sums="6fb3e556f384b3ba380c9f231881c277013307608a7b9e070e27e46d41ddae2c949761850c9b1b36c64f0297de435fc5eaf0c3724146fafd1ab6aa930d0b8f51  libpng-1.6.20.tar.gz
364fb5420c799b17ac4cc0e06b508062eefdb389dfee942efbafc2a603a58c4f9c13cb3cb437858be595d74c309c23e0934f15e5fc867df44de903286363379d  libpng-1.6.20-apng.patch.gz"