aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 0fcbd1f68cd0435ed571f24e6f017f04be275bbe (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.12
_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="297388a6746a65a2127ecdeb1c6e5c82  libpng-1.6.12.tar.gz
f959e8b1cb9876ce946a2701e8aca519  libpng-1.6.12-apng.patch.gz"
sha256sums="73bec855f265e86cf247c8e60069338bba7f16deade54b459b6465ffa86f7076  libpng-1.6.12.tar.gz
e073249f55edc941c7d7da5aa2a1134b47639cdc826379b2d4b16f4698ae5b64  libpng-1.6.12-apng.patch.gz"
sha512sums="97959a245f23775a97d63394302da518ea1225a88023bf0906c24fcf8b1765856df36d2705a847d7f822c3b4e6f5da67526bb17fe04d00d523e8a18ea5037f4f  libpng-1.6.12.tar.gz
7ed6fca885c56316402be75e4bc84c3f393e2ab58fd5e4546c86c1997dcdffec81b0b05bb54b6271105bc3e6fe4010d1bc3c9c759bb3a7c2e425d840364bc926  libpng-1.6.12-apng.patch.gz"