summaryrefslogtreecommitdiffstats
path: root/main/libpng/APKBUILD
blob: 0f9716798aaeed8e43553d8db6ff3a352a9a3ad1 (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
# Contributor: Carlo Landmeter <clandmeter at gmail>
# Maintainer: Carlo Landmeter <clandmeter at gmail>
pkgname=libpng
pkgver=1.4.1
pkgrel=0
pkgdesc="Portable Network Graphics library"
url="http://www.libpng.org/"
license="GPL"
depends=
makedepends="zlib-dev"
subpackages="$pkgname-doc $pkgname-dev"
source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"

depends_dev="zlib-dev"
build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	cd "$srcdir/$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install
	install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE || return 1
}

md5sums="fa0b2a84733463f90d3ac9f43ccafabc  libpng-1.4.1.tar.gz"