aboutsummaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 39b504863f3742f819ec4e2c10fd1fb069fdfb56 (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.3
_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="98b652b6c174c35148f1f5f513fe490d  libpng-1.6.3.tar.gz
57007fc121baa2cdc48abcfb26300e78  libpng-1.6.3-apng.patch.gz"
sha256sums="907db613a7a068baab594f761a1b6c6b3fa19829c0ed5eb482d194801830859d  libpng-1.6.3.tar.gz
5dd35a6610027708f84ee8bef8bbccd40b5a23b5ec6340df3b4cc8f59859563a  libpng-1.6.3-apng.patch.gz"
sha512sums="887582e5a22e4cde338aa8fec7a89f6dd31f2f02b8842735f00f970f64582333fa03401cea6d01704083403c7e8b7ebc26655468ce930165673b33efa4bcd586  libpng-1.6.3.tar.gz
5a82b754fe3f122e42bca7e08f98218f16cf081c6b293555ceb2c7c1588513e7efca36b4a5c976f11b44590f9b6367d43be00eea24ec0b9ab5fa65ba5e1c38b1  libpng-1.6.3-apng.patch.gz"