APKBUILD 803 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.4.5
5
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
6 7
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
Natanael Copa's avatar
Natanael Copa committed
8
arch="x86 x86_64"
Carlo Landmeter's avatar
Carlo Landmeter committed
9
license="GPL"
10
depends=
Carlo Landmeter's avatar
Carlo Landmeter committed
11 12 13
makedepends="zlib-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
14 15

depends_dev="zlib-dev"
Carlo Landmeter's avatar
Carlo Landmeter committed
16 17 18 19 20 21
build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
22 23 24 25 26
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
Carlo Landmeter's avatar
Carlo Landmeter committed
27
	make DESTDIR="$pkgdir" install
28
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
Carlo Landmeter's avatar
Carlo Landmeter committed
29 30
}

31
md5sums="dd4175393720ae041c67ace87cf6d212  libpng-1.4.5.tar.gz"