updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pngcrush / PKGBUILD
blobe1830493e444828ead8b1320a91790f8b08847e1
1 # Contributor: Anton Bazhenov <anton.bazhenov at gmail>
2 # Contributer: HuntXu <huntxu@live.cn>
3 # Maintainer: Stefan Husmann <stefan-husmann@t-online.de>
5 pkgname=pngcrush
6 pkgver=1.7.24
7 pkgrel=1
8 pkgdesc="A tool for optimizing the compression of PNG files"
9 arch=('i686' 'x86_64')
10 url="http://pmt.sourceforge.net/"
11 license=('custom')
12 depends=('glibc')
13 source=("http://downloads.sourceforge.net/pmt/$pkgname-$pkgver.tar.xz"
14         LICENSE)
15 md5sums=('eee3c4ecb532d7fb65d05f9006eca529'
16          'e6446a786d939c98fcada57f9ae6de1f')
18 build() {
19   cd "$srcdir"/$pkgname-$pkgver
20   # fix for better compression
21   sed -i 's|TOO_FAR 4096|TOO_FAR 32767|' deflate.c
22   CFLAGS+=" -DPNGCRUSH_COUNT_COLORS" make
25 package() {
26   install -Dm755 "$srcdir"/$pkgname-$pkgver/$pkgname \
27     "$pkgdir"/usr/bin/$pkgname
28   install -Dm644 $srcdir/LICENSE \
29     "$pkgdir"/usr/share/licenses/$pkgname/LICENSE