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.19
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="3121bdc77c365a87e054b9f859f421fe  libpng-1.6.19.tar.gz
b215830867151242fb4ef9d246f050c4  libpng-1.6.19-apng.patch.gz"
sha256sums="9f977ac8e4e3d4d5b001b32243f111eeec21bb6b59e583f2fb41fd2e48840352  libpng-1.6.19.tar.gz
304ba384fa147cccc11c73d165d4e8828ad7e3e45fe02ff907147a13989af82d  libpng-1.6.19-apng.patch.gz"
sha512sums="65df82b87646dfb855caaa84706b55b4c6c51dc33ce0e4476537737013a7f7a329a8f78c170c3e6354c92b7d6f55341d3fd6054e2e636e67c7829c38b10f6516  libpng-1.6.19.tar.gz
4a731fc291e6954d4dd1a594477eff7ed65f27ac07061b06b8ad50f31db0f9ff201a0173cc9551b1a04290f8c86f77318517e3eeec142eb8bc65368987bf635f  libpng-1.6.19-apng.patch.gz"