void-packages/srcpkgs/pngcrush/template

23 lines
630 B
Bash
Raw Normal View History

2015-12-05 19:59:11 +01:00
# Template file for 'pngcrush'
pkgname=pngcrush
2016-04-11 13:38:31 +02:00
version=1.8.1
2015-12-05 19:59:11 +01:00
revision=1
wrksrc=${pkgname}-${version}-nolib
makedepends="libpng-devel"
short_desc="Tool for optimizing the compression of PNG files"
maintainer="Duncaen <duncaen@voidlinux.eu>"
2015-12-05 20:00:21 +01:00
license="zlib"
2015-12-05 19:59:11 +01:00
homepage="http://pmt.sourceforge.net/pngcrush"
distfiles="${SOURCEFORGE_SITE}/pmt/${pkgname}-${version}-nolib.tar.xz"
2016-04-11 13:38:31 +02:00
checksum=29dfdc0e4302a10a58f1785ebc08ec5f57b6b2d3f36688dcb69ee058eb8a7ac0
2015-12-05 19:59:11 +01:00
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
}