aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 566fe10c64a4e6fb6c5cd17e9c4d7c9d88e22325 (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.5
_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="d219454052b3930c5d1eebd2f79e6540  libpng-1.6.5.tar.gz
e05f0ba9534e0331bf499d63811cbf93  libpng-1.6.5-apng.patch.gz"
sha256sums="39111bc125c654f2975e3732a872c2a63501e0b1d2cfb12f882b6cdc6e9fc146  libpng-1.6.5.tar.gz
ce8a456b1219d632fc3ea27fffb9ba416f3c406adce84d98fb0a7314d90257dc  libpng-1.6.5-apng.patch.gz"
sha512sums="2a15da430768a7ecf3dc6644e9f9d30427c9bcf91fb38456f3c92d7d5e5a4a1f94fa9896386d2d94e1859dfc9762f719dffe21fa345652556e43418da01425d2  libpng-1.6.5.tar.gz
2aeddc7393c7443620c376e9f3a0c8ecee0c762af8f8b479335984691de11edc211391dc380e142c1de201bebf606a75ba4d4bc9b8d3bad857c9411d9920e93f  libpng-1.6.5-apng.patch.gz"