blob: 42609e141d9f55e19f6d46910b151324c9a968ff (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.19
_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
}
md5sums="3121bdc77c365a87e054b9f859f421fe libpng-1.6.19.tar.gz
b215830867151242fb4ef9d246f050c4 libpng-1.6.19-apng.patch.gz"
sha256sums="9f977ac8e4e3d4d5b001b32243f111eeec21bb6b59e583f2fb41fd2e48840352 libpng-1.6.19.tar.gz
304ba384fa147cccc11c73d165d4e8828ad7e3e45fe02ff907147a13989af82d libpng-1.6.19-apng.patch.gz"
sha512sums="65df82b87646dfb855caaa84706b55b4c6c51dc33ce0e4476537737013a7f7a329a8f78c170c3e6354c92b7d6f55341d3fd6054e2e636e67c7829c38b10f6516 libpng-1.6.19.tar.gz
4a731fc291e6954d4dd1a594477eff7ed65f27ac07061b06b8ad50f31db0f9ff201a0173cc9551b1a04290f8c86f77318517e3eeec142eb8bc65368987bf635f libpng-1.6.19-apng.patch.gz"
|