blob: dbab62f4e75141dd06c516702004f561a241edfc (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.6.18
_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="685ce2ebbf4ad9a03992fb5f10c38df1 libpng-1.6.18.tar.gz
a9c85fe3cf0347ea94356f1e70d07973 libpng-1.6.18-apng.patch.gz"
sha256sums="593d9216270dca1ab1fc2f0e4383a9ac99394c349392fb0f65043f0e6fbfdac6 libpng-1.6.18.tar.gz
7b9a80bd05e54babdbf6623dab8df7d050331f61417ba660d08a32b80594543c libpng-1.6.18-apng.patch.gz"
sha512sums="fe60370fa75c92854e5a75f87aba4252464a23bce087506201430d920f64c5fc32f0b732131e1d9ad20664c1353eeae9b24081c7f831d6f73f86199b712ffd1f libpng-1.6.18.tar.gz
b41f2db1abd1c11c7b9339c2a9cae5fb2d31691677de686aa06ded951b65c0b3bfe48e5aaeb956a8e539b08777f5b2fb734fa21a6908671f0f93921ea2cac966 libpng-1.6.18-apng.patch.gz"
|