summaryrefslogtreecommitdiff
path: root/libre/pngcrush/PKGBUILD
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-07-14 19:33:02 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-08-04 22:49:36 -0600
commit99b4985b2116205cec84d8904f50927ae0594d00 (patch)
tree698b5cdd5fb96884472d1d1f4b69a33f4f186432 /libre/pngcrush/PKGBUILD
parent946d64a4f98b36d70189c65010e666a597ad7aab (diff)
update pngcrush, move it from pcr to libre
Diffstat (limited to 'libre/pngcrush/PKGBUILD')
-rw-r--r--libre/pngcrush/PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/libre/pngcrush/PKGBUILD b/libre/pngcrush/PKGBUILD
new file mode 100644
index 000000000..f44ace016
--- /dev/null
+++ b/libre/pngcrush/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
+
+pkgname=pngcrush
+pkgver=1.7.65
+pkgrel=1
+pkgdesc="A tool for optimizing the compression of PNG files"
+arch=('i686' 'x86_64' 'mips64el')
+url="http://pmt.sourceforge.net/pngcrush/"
+license=('custom')
+depends=('libpng' 'zlib')
+source=(http://downloads.sourceforge.net/pmt/$pkgname-$pkgver-nolib.tar.xz)
+
+build() {
+ cd "$srcdir"/$pkgname-$pkgver-nolib
+ sed -n '10,17s/^\s*//p' cexcept.h > LICENSE.cexcept.txt
+ sed -rn '97,142s/ \* ?//p' pngcrush.c > LICENSE.pngcrush.txt
+ make
+}
+
+package() {
+ cd "$srcdir"/$pkgname-$pkgver-nolib
+ install -Dm755 $pkgname "$pkgdir"/usr/bin/$pkgname
+ install -Dm644 LICENSE.cexcept.txt "$pkgdir"/usr/share/licenses/$pkgname/cexcept.txt
+ install -Dm644 LICENSE.pngcrush.txt "$pkgdir"/usr/share/licenses/$pkgname/pngcrush.txt
+}
+
+md5sums=('b4130246c14c1cffc6c2014ff86f1008')