aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 3d92aa3bcb8064c719eb876139b2afd2b6f88505 (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.14
_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 \
		|| return 1
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="2101b3de1d5f348925990f9aa8405660  libpng-1.6.14.tar.gz
39f35cde00159c24b5a10258d8f2c5ce  libpng-1.6.14-apng.patch.gz"
sha256sums="e6cab38f051bfc66929e766c1e67eba6fafac9e0f463ee3bbeb4ac16f173fe8e  libpng-1.6.14.tar.gz
86105b011d4b7028c598d4fe056724ff179c1e7295c8e459b4b39db266aa97bf  libpng-1.6.14-apng.patch.gz"
sha512sums="cd6b90dbab8ae8347ba294c3248188aca737ef324d9fb58c6cd8f7bcbede5e1ff0baeb62bb1e87ca926c761fd680e518181cde66a59bfc95da8b7600687a8bd6  libpng-1.6.14.tar.gz
a46a7fd82337f7a31579921a2f8859787c783a3654de0ff7a0a98aca2f609e881597959d8ca441475b1ee55445feef139ffc42831d3b0fbd4df656dcbb32e010  libpng-1.6.14-apng.patch.gz"