aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: ea489fbc59be15e326593db38a7c77079a59d894 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.22
_apngver=$pkgver
pkgrel=0
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
arch="all"
license="GPL"
depends=""
depends_dev="zlib-dev"
makedepends="$depends_dev gawk"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
	http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz
	"

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

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 LICENSE \
		"$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1
}

md5sums="4a84ef93939d18d589e8314ac742423a  libpng-1.6.22.tar.gz
910526e60f82d3f91ffe3fa9e247216e  libpng-1.6.22-apng.patch.gz"
sha256sums="7944056621477eca2eba31cf1e99fa484721216a8af03c124426fccb37665df9  libpng-1.6.22.tar.gz
8fdcd293873ae88364e7d58b6e4bfc49ff1d8ac6663abc207992dd2b27e16e8b  libpng-1.6.22-apng.patch.gz"
sha512sums="06ccba6398e8cb22f632c47972a7bc64e9ed3e41c85fbfaddd0f39b6bad0848d333e1e8df0d7e9bbb44854172991559fab7b1d79cc6be44342dce3a49ba6eed6  libpng-1.6.22.tar.gz
d55f51cccf99748cd68d469dd83db25b2913242f7019e7fb97b635b1a639ef7349055884e94155fb5805046d1f9b6e90e29de2bf08f38af691deb6c58e229016  libpng-1.6.22-apng.patch.gz"