blob: 94bf53c98091662b1336eb8afe9fd8a9f1dbd8bd (
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.17
_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="134282f1752dcf4cd81a37b8ff421cef libpng-1.6.17.tar.gz
f68d34f10bcc7f43b8c3dce5708e1933 libpng-1.6.17-apng.patch.gz"
sha256sums="a18233c99e1dc59a256180e6871d9305a42e91b3f98799b3ceb98e87e9ec5e31 libpng-1.6.17.tar.gz
25998d89d423834df3f0171d195ef15a0bca30f55657a339138313429a9d0f2b libpng-1.6.17-apng.patch.gz"
sha512sums="445cf5cace57eb89f2f52be96e9f0e956717a4d4474bd6f5d0545a8b30b45ff45df94325c2504b044d014880cbb3e696475cd6fa7936993dee7ffee93756e384 libpng-1.6.17.tar.gz
5abfe55ad8e2778572fa5c1543c23b01c7f7fc4fea1aec535ac5749ae1ba1e209e7b94641d34d4b6514be7abbf176b957e3690832d4358d0590754063303eeb0 libpng-1.6.17-apng.patch.gz"
|