void-packages/srcpkgs/pngcrush/template

22 lines
586 B
Bash

# Template file for 'pngcrush'
pkgname=pngcrush
version=1.8.13
revision=3
wrksrc=${pkgname}-${version}-nolib
build_style=gnu-makefile
makedepends="libpng-devel"
short_desc="Tool for optimizing the compression of PNG files"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="Libpng"
homepage="https://pmt.sourceforge.net/pngcrush"
distfiles="${SOURCEFORGE_SITE}/pmt/${pkgname}-${version}-nolib.tar.xz"
checksum=3b4eac8c5c69fe0894ad63534acedf6375b420f7038f7fc003346dd352618350
pre_build() {
export LD="$CC"
}
post_install() {
sed -n 10,160p pngcrush.c > LICENSE
vlicense LICENSE
}