aboutsummaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
blob: 849ebdaa5034e6857b3400cd5d4bea85c4fb4bf4 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pngcrush
pkgver=1.7.85
pkgrel=0
pkgdesc="PNG recompression utility"
url="http://pmt.sourceforge.net/pngcrush/"
arch="all"
license="zlib"
depends=""
depends_dev=""
makedepends="$depends_dev zlib-dev"
install=""
subpackages=""
source="http://downloads.sourceforge.net/project/pmt/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz
	license.txt
	01-makefile-sanity.patch"

_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	make || return 1
}

package() {
	cd "$_builddir"
	install -D -m755 $pkgname "$pkgdir"/usr/bin/$pkgname || return 1
	install -D -m644 "$srcdir"/license.txt \
		"$pkgdir"/usr/share/licenses/pngcrush || return 1
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="c86e88856d9b3148da6c41d164108a9c  pngcrush-1.7.85.tar.xz
8e5d194d4197e51add36722cd3248717  license.txt
6a87145c0147355f2b0efb33f173a13b  01-makefile-sanity.patch"
sha256sums="d285f87f2d24e03d99b0340708952de342ca404e90782ce44bfb394a4d0d9dbc  pngcrush-1.7.85.tar.xz
2dedd4fae0c2c613411be8d7736d1d7b2f6573ff6eae3eb2f9f5e312e327c983  license.txt
0cb9d31ff9a49c904b3e83c61dd7860adaa09f9aa11b69e5112edbb775da2ea2  01-makefile-sanity.patch"
sha512sums="0f9f9e99817fe4f4915d5a5a2469106a02e90b6ea7911a562b8412d4a15bed9668ac7eb8d47abfeb4646882fac44e4606d73296c8c088c8c01ec1f10164eefd5  pngcrush-1.7.85.tar.xz
0302e756fb854ab0569c08254be522714396d554589b1d5a2822858c678eb16a78ee489d9170ebfcf7604eae27eb346c64646c4f1976e02bc258c749813fcf99  license.txt
87965282c81907332063f4f735740093799c93c7994428200e4c52e559653aa7293dde4608250479c321f1a0eba2bddc3ccbb22d75fe9610b379075a28c612cd  01-makefile-sanity.patch"