APKBUILD 1.59 KB
Newer Older
1
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
2
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Carlo Landmeter's avatar
Carlo Landmeter committed
3
pkgname=libpng
4
pkgver=1.6.13
5
_apngver=$pkgver
6
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
7 8
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
9
arch="all"
Carlo Landmeter's avatar
Carlo Landmeter committed
10
license="GPL"
11
depends=
12 13
depends_dev="zlib-dev"
makedepends="$depends_dev gawk"
Carlo Landmeter's avatar
Carlo Landmeter committed
14
subpackages="$pkgname-doc $pkgname-dev"
15
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz
16
	http://downloads.sourceforge.net/sourceforge/libpng-apng/libpng-$_apngver-apng.patch.gz
17 18 19 20 21 22 23 24
	"

_builddir="$srcdir/$pkgname-$pkgver"

prepare() {
	cd "$_builddir"
	gunzip -c "$srcdir"/libpng-$pkgver-apng.patch.gz | patch -p1 || return 1
}
25

Carlo Landmeter's avatar
Carlo Landmeter committed
26
build() {
27
	cd "$_builddir"
28 29 30 31
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
32
		|| return 1
33 34 35 36 37
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Carlo Landmeter's avatar
Carlo Landmeter committed
38
	make DESTDIR="$pkgdir" install
39
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
40
	rm -f "$pkgdir"/usr/lib/*.la
Carlo Landmeter's avatar
Carlo Landmeter committed
41 42
}

43 44 45 46 47 48
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"