aboutsummaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
blob: afa910e0b76a70e3fd49ae9259734df355c706e1 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pngcrush
pkgver=1.8.13
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
}

sha512sums="c073d573e9b13b72fa39b178271ce65d1a19fef35943ef0a9e6121a5c66d9db212aaad38ab777c5b44e20a107eb677003acbdb4a354bcb2dc40f535a97d9df0e  pngcrush-1.8.13-nolib.tar.xz"