void-packages/srcpkgs/pngcrush/template
2016-01-17 18:27:57 +01:00

22 lines
630 B
Bash

# Template file for 'pngcrush'
pkgname=pngcrush
version=1.8.0
revision=1
wrksrc=${pkgname}-${version}-nolib
makedepends="libpng-devel"
short_desc="Tool for optimizing the compression of PNG files"
maintainer="Duncaen <duncaen@voidlinux.eu>"
license="zlib"
homepage="http://pmt.sourceforge.net/pngcrush"
distfiles="${SOURCEFORGE_SITE}/pmt/${pkgname}-${version}-nolib.tar.xz"
checksum=baa7048351c341e3a0c4769db7093b3206d46aa66ca93ac039c896ace63563bf
do_build() {
make CC="$CC" LD="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS"
}
do_install() {
sed -n 10,160p pngcrush.c > LICENSE
vlicense LICENSE
make DESTDIR="$DESTDIR" install
}