blob: 901524bd90a2e960165a04a6f90c6439fa5851b2 (
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.13
_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="1b446065d2c2e48f79ad98f7bde57286 libpng-1.6.13.tar.gz
1ecbf7811d6da8a35ad7d4485df2290a libpng-1.6.13-apng.patch.gz"
sha256sums="7cbeb2429a249464e8d529e955045e00d0a90637d25970a081258141630c8941 libpng-1.6.13.tar.gz
0b7f08a228a077740dc933dc366e619d35b3722f167bf1aa8114c23f6eb7f704 libpng-1.6.13-apng.patch.gz"
sha512sums="919f8ad1bf3daa55104dcc61701d32e5f22053659fde45fbae90cd3304175821fb1fe805f401cef83cbecb63342cc35e63f053315269d161e77ba4509736aaac libpng-1.6.13.tar.gz
5dfdb8450cf02d9397332826586cb6e9d0e0220fc052b419df42808a4a8a2cd367db1d573c5635928be8daaf8f326c13f00e28e9cd69078c532d92e2aa2595e4 libpng-1.6.13-apng.patch.gz"
|