aboutsummaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
blob: beebc0b516649191a79e663da49c5f7af7d72f56 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pngcrush
pkgver=1.8.4
pkgrel=0
pkgdesc="PNG recompression utility"
url="http://pmt.sourceforge.net/pngcrush/"
arch="all"
license="zlib"
depends=""
depends_dev=""
makedepends="$depends_dev zlib-dev libpng-dev"
install=""
subpackages=""
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" \
		|| return 1
}

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

md5sums="ae3ac4e9a2fffdc73c47608e2035b74a  pngcrush-1.8.4-nolib.tar.xz"
sha256sums="4ef6d790677cf57f622db693337d841b60d62c044e8681299245c298bd56161a  pngcrush-1.8.4-nolib.tar.xz"
sha512sums="f246a62727d5ecfda72e4be544c857ff4e67673cc54ac80ba60db5b1b2bea68c22780dd3999d76ee0ccfde5b8ca001c828ee22f46431e1b22e972b37f88f3192  pngcrush-1.8.4-nolib.tar.xz"