updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / pngcrush / PKGBUILD
blob34fd983585d609abb1bad4d3fa18060b5884cc91
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.22
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=('03014bfa0111284aad3f4257da1845d5'
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