blob: 6e499884c3c887b693b71d02a50de0baa5aa594e (
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
|
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libpng
pkgver=1.5.17
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/project/libpng-apng/libpng15/$pkgver/libpng-$pkgver-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 --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="d2e27dbd8c6579d1582b3f128fd284b4 libpng-1.5.17.tar.gz
878deb6149c5d9b7ab68f63ce3b9c2cc libpng-1.5.17-apng.patch.gz"
sha256sums="f37ea62cb79713ac327c0f2555160dddc547afdf1fd052e7f648f1bac0819470 libpng-1.5.17.tar.gz
3f09f15cc2377dec84c7d2ff8111a7652b27a80cb39c03061e6ccb555cb2416b libpng-1.5.17-apng.patch.gz"
sha512sums="5c1645340244bb8905eef3e810c4b4c4d6ea0216dace7f9e97f52621b337bf1f2452abdbb837d91cae0be42be0bccceeb87e5442d4e6b513d0f22aa86dec5e5d libpng-1.5.17.tar.gz
1e06389dcd8f94347089c776fdfd19d253e4fb944a2fa326baab1225dcdaea4d9fd52b6ff510dc0eebbdf1e0de9cee0d5f7e1090559e0909e239a0ec09d15780 libpng-1.5.17-apng.patch.gz"
|