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.18
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
39
	rm -f "$pkgdir"/usr/lib/*.la
Carlo Landmeter's avatar
Carlo Landmeter committed
40 41
}

42 43 44 45 46 47
md5sums="685ce2ebbf4ad9a03992fb5f10c38df1  libpng-1.6.18.tar.gz
a9c85fe3cf0347ea94356f1e70d07973  libpng-1.6.18-apng.patch.gz"
sha256sums="593d9216270dca1ab1fc2f0e4383a9ac99394c349392fb0f65043f0e6fbfdac6  libpng-1.6.18.tar.gz
7b9a80bd05e54babdbf6623dab8df7d050331f61417ba660d08a32b80594543c  libpng-1.6.18-apng.patch.gz"
sha512sums="fe60370fa75c92854e5a75f87aba4252464a23bce087506201430d920f64c5fc32f0b732131e1d9ad20664c1353eeae9b24081c7f831d6f73f86199b712ffd1f  libpng-1.6.18.tar.gz
b41f2db1abd1c11c7b9339c2a9cae5fb2d31691677de686aa06ded951b65c0b3bfe48e5aaeb956a8e539b08777f5b2fb734fa21a6908671f0f93921ea2cac966  libpng-1.6.18-apng.patch.gz"