aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 85df39a6953053db2efbcbc5d664d6c7ce3da5c8 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.5.16
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/project/libpng-apng/libpng15/$pkgver/libpng-$pkgver-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 --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="836cc4673e282cb089018e70c3c4a7fa  libpng-1.5.16.tar.gz
b64c3f63c23518d6446d60848b2df599  libpng-1.5.16-apng.patch.gz"
sha256sums="0eade3b039004603a801f9556e06f604bd1e73178104c5f750ea5041694992ff  libpng-1.5.16.tar.gz
7169d7f91d810f5dd6635e1686aabc9c75b776a6856f17aa7243721086e9705c  libpng-1.5.16-apng.patch.gz"
sha512sums="0a98c92997a5e0ef8284d2e965b7746c27671d20af21a9cd92a278cc086ec9e080b48c05240cab94fe6881b5a189f91e1449036fa164f645f5a659287bbc9261  libpng-1.5.16.tar.gz
c13b06e9d69c00006088f62b9959b99eaeac70cbbd38e37082f6b8b0ae7bf8ba0dbcda1f83b92b7eab0a2548fe3e9bd416dedcc87149d5358f87dd063493e19b  libpng-1.5.16-apng.patch.gz"