APKBUILD 785 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
Natanael Copa's avatar
Natanael Copa committed
4
pkgver=1.4.3
Natanael Copa's avatar
Natanael Copa committed
5
pkgrel=0
Carlo Landmeter's avatar
Carlo Landmeter committed
6
7
8
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
17
18
19
20
build() {
	cd "$srcdir/$pkgname-$pkgver"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
Natanael Copa's avatar
Natanael Copa committed
21
22
23
24
25
	make
}

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

Natanael Copa's avatar
Natanael Copa committed
30
md5sums="df3521f61a1b8b69489d297c0ca8c1f8  libpng-1.4.3.tar.gz"