diff options
author | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-04-30 22:56:36 -0300 |
---|---|---|
committer | Márcio Alexandre Silva Delgado <coadde@lavabit.com> | 2013-04-30 22:56:36 -0300 |
commit | bf73cdd8cfcf5ecaa491529b2cd7d173e65d5bdd (patch) | |
tree | db37a465615682fa895cddfbfdfef7f365050f52 /pcr/pngcrush/PKGBUILD | |
parent | e0a8d2cf984cf6deaaec78895751f9f169907643 (diff) | |
parent | ef3d62986a4e195452561d67ae4e650fea19f134 (diff) | |
download | abslibre-bf73cdd8cfcf5ecaa491529b2cd7d173e65d5bdd.tar.gz abslibre-bf73cdd8cfcf5ecaa491529b2cd7d173e65d5bdd.tar.bz2 abslibre-bf73cdd8cfcf5ecaa491529b2cd7d173e65d5bdd.zip |
Merge branch 'master' of ssh://parabolagnulinux.org:1863/srv/git/abslibre
Diffstat (limited to 'pcr/pngcrush/PKGBUILD')
-rw-r--r-- | pcr/pngcrush/PKGBUILD | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/pcr/pngcrush/PKGBUILD b/pcr/pngcrush/PKGBUILD new file mode 100644 index 000000000..a4ac8b5cb --- /dev/null +++ b/pcr/pngcrush/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net> + +pkgname=pngcrush +pkgver=1.7.58 +pkgrel=1 +pkgdesc="A tool for optimizing the compression of PNG files" +arch=('i686' 'x86_64' 'mips64el') +url="http://pmt.sourceforge.net/" +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=('aa09aa8a65999ba522e5735ed0ad6a1a') |