summaryrefslogtreecommitdiff
path: root/~aur/pngcrush/PKGBUILD
blob: e3b4770862462bfb2238ebe58fd9f7e343f7a3ba (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
# Contributor: Anton Bazhenov <anton.bazhenov at gmail>
# Contributer: HuntXu <huntxu@live.cn>
# Maintainer: Stefan Husmann <stefan-husmann@t-online.de>

pkgname=pngcrush
pkgver=1.7.15
pkgrel=1
pkgdesc="A tool for optimizing the compression of PNG files"
arch=('i686' 'x86_64')
url="http://pmt.sourceforge.net/"
license=('custom')
depends=('glibc')
source=(http://downloads.sourceforge.net/pmt/$pkgname-$pkgver.tar.xz
        LICENSE)
md5sums=('c21cf76d187dadd4c137e894dcb593bf'
         'e6446a786d939c98fcada57f9ae6de1f')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  # fix for better compression
  sed -i 's|TOO_FAR 4096|TOO_FAR 32767|' deflate.c
  make
}

package() {
  install -Dm755 "$srcdir"/$pkgname-$pkgver/$pkgname \
    "$pkgdir"/usr/bin/$pkgname
  install -Dm644 $srcdir/LICENSE \
    "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}