diff options
author | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-08-06 08:42:21 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@lavabit.com> | 2013-08-06 08:42:21 -0300 |
commit | 8d819684e5c65a5e69ba7cc9801068f1e6861e86 (patch) | |
tree | 7d48a1e8c96e31f8ddea9a05e3c6427c626391af /libre | |
parent | 766f22857d4ea2453c9fb30aa1d8eca698334033 (diff) | |
parent | 902c8b562c2730df0d98881ab47e4778a8f5bf3c (diff) |
Merge branch 'master' of ssh://projects.parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'libre')
-rw-r--r-- | libre/pngcrush/PKGBUILD | 27 |
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') |