aboutsummaryrefslogtreecommitdiffstats
path: root/community/optipng/APKBUILD
blob: ed17fe8c58d0b3d55dc3752c8c3c5e85b7c87c6e (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
31
32
33
34
35
36
# Maintainer: Michael Koloberdin <koloberdin@gmail.com>
pkgname=optipng
pkgver=0.7.6
pkgrel=2
pkgdesc="Compresses PNG files to a smaller size, without losing any information."
url="http://optipng.sourceforge.net/"
arch="all"
license="ZLIB"
makedepends="libpng-dev"
subpackages="$pkgname-doc"
source="http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz"

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

build() {
	cd "$builddir"
	./configure \
		--prefix=/usr \
		-with-system-libs
	make
}

check() {
	cd "$builddir"
	make test
}

package() {
	cd "$builddir"
	make prefix="$pkgdir/usr" mandir="$pkgdir/usr/share/man" install || return 1

	# install license
	install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" || return 1
}

sha512sums="d31d7494c23413d87b601a706cc2faf82923156a818da66e0bfad11741aed065db8f1b0c088d2abd66899ac192408c05f594295ded2684c4549c5f03b140a184  optipng-0.7.6.tar.gz"