APKBUILD 754 Bytes
Newer Older
Carlo Landmeter's avatar
Carlo Landmeter committed
1 2 3
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=libpng
4
pkgver=1.2.39
Carlo Landmeter's avatar
Carlo Landmeter committed
5 6 7 8
pkgrel=0
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
license="GPL"
9
depends=
Carlo Landmeter's avatar
Carlo Landmeter committed
10 11 12
makedepends="zlib-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
13 14

depends_dev="zlib-dev"
Carlo Landmeter's avatar
Carlo Landmeter committed
15 16
build() {
	cd "$srcdir/$pkgname-$pkgver"
17

Carlo Landmeter's avatar
Carlo Landmeter committed
18 19 20 21 22 23
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make || return 1
	make DESTDIR="$pkgdir" install
24
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
25 26
}

27
md5sums="ddfeaf19b690985910c42e41974e8d65  libpng-1.2.39.tar.gz"