summaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
blob: f6e347c98d61f76143fdbb7f4da8c3278b4d1f91 (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer:
pkgname=pngcrush
pkgver=1.7.25
pkgrel=0
pkgdesc="PNG recompression utility"
url="http://pngcrush.sourceforge.net"
arch="all"
license="zlib"
depends=""
depends_dev=""
makedepends="$depends_dev"
install=""
subpackages=""
source="
	http://downloads.sourceforge.net/project/pmt/pngcrush/$pkgver/pngcrush-$pkgver.tar.bz2
	license.txt
	01-makefile-sanity.patch
	"

_builddir="$srcdir"/pngcrush-$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 pngcrush "$pkgdir"/usr/bin/pngcrush
	install -D -m644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/pngcrush
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="c891a418419efa07aa513db602d8f403  pngcrush-1.7.25.tar.bz2
8e5d194d4197e51add36722cd3248717  license.txt
837e46dc592ef087547372e278502b57  01-makefile-sanity.patch"