aboutsummaryrefslogtreecommitdiffstats
path: root/main/pngcrush/APKBUILD
diff options
context:
space:
mode:
authorKiyoshi Aman <aphrael@alpinelinux.org>2012-03-13 12:16:53 -0400
committerKiyoshi Aman <aphrael@alpinelinux.org>2012-03-13 12:17:21 -0400
commita547975afc0b1b70fd23afa577db276664e14d96 (patch)
tree81f5ed02faf6132f05de323ae8f157f44898303a /main/pngcrush/APKBUILD
parentc37fe5f609ecef1ec68d5f79fccf90cc27c0a5d9 (diff)
downloadaports-a547975afc0b1b70fd23afa577db276664e14d96.tar.bz2
aports-a547975afc0b1b70fd23afa577db276664e14d96.tar.xz
main/pngcrush: new APKBUILD
Diffstat (limited to 'main/pngcrush/APKBUILD')
-rw-r--r--main/pngcrush/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/pngcrush/APKBUILD b/main/pngcrush/APKBUILD
new file mode 100644
index 0000000000..f6e347c98d
--- /dev/null
+++ b/main/pngcrush/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer:
+pkgname=pngcrush
+pkgver=1.7.25
+pkgrel=0
+pkgdesc="PNG recompression utility"
+url="http://pngcrush.sourceforge.net"
+arch="all"
+license="zlib"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="
+ http://downloads.sourceforge.net/project/pmt/pngcrush/$pkgver/pngcrush-$pkgver.tar.bz2
+ license.txt
+ 01-makefile-sanity.patch
+ "
+
+_builddir="$srcdir"/pngcrush-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -D -m755 pngcrush "$pkgdir"/usr/bin/pngcrush
+ install -D -m644 "$srcdir"/license.txt "$pkgdir"/usr/share/licenses/pngcrush
+ rm -f "$pkgdir"/usr/lib/*.la
+}
+
+md5sums="c891a418419efa07aa513db602d8f403 pngcrush-1.7.25.tar.bz2
+8e5d194d4197e51add36722cd3248717 license.txt
+837e46dc592ef087547372e278502b57 01-makefile-sanity.patch"