aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 76262d19eb25f61e4e1a0fb3ab2702b8e4337334 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.20
_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="53166795d924950988a5513d3e605333  libpng-1.6.20.tar.gz
b2186d5e7853890e25b34b03c7f2ddde  libpng-1.6.20-apng.patch.gz"
sha256sums="3d3bdc16f973a62fb1d26464fe2fe19f51dde9b883feff3e059d18ec1457b199  libpng-1.6.20.tar.gz
e63b7ebb68a520ec6fb8a4f0af7fe4a878e14a79fd8cc55ec3d599891355af87  libpng-1.6.20-apng.patch.gz"
sha512sums="6fb3e556f384b3ba380c9f231881c277013307608a7b9e070e27e46d41ddae2c949761850c9b1b36c64f0297de435fc5eaf0c3724146fafd1ab6aa930d0b8f51  libpng-1.6.20.tar.gz
364fb5420c799b17ac4cc0e06b508062eefdb389dfee942efbafc2a603a58c4f9c13cb3cb437858be595d74c309c23e0934f15e5fc867df44de903286363379d  libpng-1.6.20-apng.patch.gz"