summaryrefslogtreecommitdiff
path: root/~lukeshu/pngcrush/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-12-12 23:14:53 +0000
committerroot <root@rshg054.dnsready.net>2011-12-12 23:14:53 +0000
commitcb9c375209c236c16557878a1b864f91de27b88d (patch)
treeb0a7d6c0d887620c16ad1a95c9dfef632cb1b877 /~lukeshu/pngcrush/PKGBUILD
parent22b0fa480661b6247dabf39059fe629e1d233a9a (diff)
Mon Dec 12 23:14:53 UTC 2011
Diffstat (limited to '~lukeshu/pngcrush/PKGBUILD')
-rw-r--r--~lukeshu/pngcrush/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/~lukeshu/pngcrush/PKGBUILD b/~lukeshu/pngcrush/PKGBUILD
new file mode 100644
index 000000000..e3b477086
--- /dev/null
+++ b/~lukeshu/pngcrush/PKGBUILD
@@ -0,0 +1,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
+}