blob: 7739c0dd0c99d8359219dee6f019295c76cb4a0d (
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.7
_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="ab48db8c1acf75472a48c22649a6d13b libpng-1.6.7.tar.gz
aad92ea0cc3e29415b90c78f1d267799 libpng-1.6.7-apng.patch.gz"
sha256sums="5d3be409d4ed4425923ad8677fc45497abb43c6b9cfd5beafe7dfc6f2a94f24b libpng-1.6.7.tar.gz
b3a42513483243dd8af219b6f150cf8e6159d2394d2c6e364e94579d16adb0bc libpng-1.6.7-apng.patch.gz"
sha512sums="9cfe0fd37db8b8c870c95d5cabf9fec499dadbffa72c1e607b87f49d3b1a1b6e675f0c42d219a0a4ce13c0dda1995a3dd71339a77d0148a111ee394829fa83af libpng-1.6.7.tar.gz
41c95920b7bb67d741aec2f88247bb59d351a8de50548f41b10516c62cd8d8d0fbb9301365ba8f12f79871a758d65941792076aed43311902a4e88c6cd3f715a libpng-1.6.7-apng.patch.gz"
|