aboutsummaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
blob: 9898c9c1caa20da2164b050066426721a18bd7f6 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pngcrush
pkgver=1.8.10
pkgrel=0
pkgdesc="PNG recompression utility"
url="http://pmt.sourceforge.net/pngcrush/"
arch="all"
license="zlib"
depends=""
makedepends="zlib-dev libpng-dev"
source="http://downloads.sourceforge.net/pmt/${pkgname}-${pkgver}-nolib.tar.xz"
builddir="$srcdir/$pkgname-$pkgver-nolib"

build() {
	cd "$builddir"
	make CC="${CC:-gcc}" \
		CFLAGS="$CFLAGS" \
		LDFLAGS="$LDFLAGS"
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="6ecf2b3b1ee5898b747ca7b63fa92a47  pngcrush-1.8.10-nolib.tar.xz"
sha256sums="8db04792f8912011c9c25caf732894276f16ff0b7612f3365d18971dfb56442b  pngcrush-1.8.10-nolib.tar.xz"
sha512sums="34d06b13ebbea77bb8f0e7d69ad8ddde5e36c8970adadc074bdf3715f5fe275e475680ea3e1b89349844b2aaeddcb00b35683c8dfc4ce2d78b59c20c626eca69  pngcrush-1.8.10-nolib.tar.xz"