blob: 81b893efdbb55e482376e8c03a5767f214987993 (
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.9
_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="edd26ef2bf561786b2185f2b8afda78b libpng-1.6.9.tar.gz
d784762a28f6a6c697a162873807f479 libpng-1.6.9-apng.patch.gz"
sha256sums="58c976f5aed8ca7f06811622268af46cbdb8ed48e75c8d18b1b1950f7a00c79a libpng-1.6.9.tar.gz
a113ee44b68f0bc40d6d1ca0ce81ac680d394e455d1c867aee7eab0196f1c150 libpng-1.6.9-apng.patch.gz"
sha512sums="00b7664d4246eb358b3778102a4502e75e645bf603d91e957e9aa94aead9a122aa7d396bf48ea7438c725fa43f5004ecb7dadd583a7405916d447da47bb49be3 libpng-1.6.9.tar.gz
d0af1a4853a7f0abc13647aefd269ccf65b19e366f40720a5b47c9b8e3d931e9c72604882df9e0eb6a25e46d626afc20fd04b7b9efa147da1f1bbcd6c9e22771 libpng-1.6.9-apng.patch.gz"
|