aboutsummaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
blob: 0ea73c1ff22b73c0d095df9a074b9ab9db68fd5f (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
# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=pngcrush
pkgver=1.7.27
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/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="582ab2b4c262b8837cc2d30bf7d14f33  pngcrush-1.7.27.tar.bz2
8e5d194d4197e51add36722cd3248717  license.txt
5b8c8a7441ec0f28960b0035fe68cc00  01-makefile-sanity.patch"