void-packages/srcpkgs/pngquant/template
2017-03-03 11:53:44 +01:00

25 lines
868 B
Bash

# Template file for 'pngquant'
pkgname=pngquant
version=2.9.0
revision=1
build_style=gnu-configure
create_wrksrc=yes
build_wrksrc="${pkgname}-${version}"
configure_args="--with-openmp"
case "$XBPS_TARGET_MACHINE" in
x86_64*) configure_args+=" --enable-sse";;
*) configure_args+=" --disable-sse";;
esac
makedepends="lcms2-devel libgomp-devel libpng-devel"
short_desc="Lossy PNG compressor"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-3"
homepage="https://pngquant.org/"
distfiles="https://github.com/pornel/${pkgname}/archive/${version}.tar.gz
https://github.com/ImageOptim/libimagequant/archive/211175cf6c96435f1506da5cd1bb9c670e40a06b.tar.gz"
checksum="1dbfdfe501ced9659dbe99e931a1eb596f27e6a6afda3a25b5ebce324977e957
be9e0aaaf571b18ee477b789544d7192e0cd0d5e2e630fdae3ac7e65340fd721"
post_extract() {
cp -r libimagequant-*/* ${build_wrksrc}/lib
}