APKBUILD 1.55 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.5.16
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
6 7
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
8
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
9
license="GPL"
10
depends=
11 12
depends_dev="zlib-dev"
makedepends="$depends_dev gawk"
Carlo Landmeter's avatar
Carlo Landmeter committed
13
subpackages="$pkgname-doc $pkgname-dev"
14
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
Natanael Copa's avatar
Natanael Copa committed
15
	http://downloads.sourceforge.net/project/libpng-apng/libpng15/$pkgver/libpng-$pkgver-apng.patch.gz
16 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"
Carlo Landmeter's avatar
Carlo Landmeter committed
27
	./configure --prefix=/usr \
28
		|| return 1
Natanael Copa's avatar
Natanael Copa committed
29 30 31 32 33
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Carlo Landmeter's avatar
Carlo Landmeter committed
34
	make DESTDIR="$pkgdir" install
35
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
Natanael Copa's avatar
Natanael Copa committed
36
	rm -f "$pkgdir"/usr/lib/*.la
Carlo Landmeter's avatar
Carlo Landmeter committed
37 38
}

39 40 41 42 43 44
md5sums="836cc4673e282cb089018e70c3c4a7fa  libpng-1.5.16.tar.gz
b64c3f63c23518d6446d60848b2df599  libpng-1.5.16-apng.patch.gz"
sha256sums="0eade3b039004603a801f9556e06f604bd1e73178104c5f750ea5041694992ff  libpng-1.5.16.tar.gz
7169d7f91d810f5dd6635e1686aabc9c75b776a6856f17aa7243721086e9705c  libpng-1.5.16-apng.patch.gz"
sha512sums="0a98c92997a5e0ef8284d2e965b7746c27671d20af21a9cd92a278cc086ec9e080b48c05240cab94fe6881b5a189f91e1449036fa164f645f5a659287bbc9261  libpng-1.5.16.tar.gz
c13b06e9d69c00006088f62b9959b99eaeac70cbbd38e37082f6b8b0ae7bf8ba0dbcda1f83b92b7eab0a2548fe3e9bd416dedcc87149d5358f87dd063493e19b  libpng-1.5.16-apng.patch.gz"