void-packages/srcpkgs/pngquant/template

26 lines
868 B
Bash

# Template file for 'pngquant'
pkgname=pngquant
version=2.9.1
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/c927fa593a181d304caff3f1ccc91c0da0c02608.tar.gz"
checksum="0601f7c8c5757f4b634e3b172abf5e0f3d5b2922c8eabfd071230394d33e9834
d4f5a8bfcc078a259d1a9d6fa06958aa6381bc14f7bc49b46abeacf162bdb856"
post_extract() {
cp -r libimagequant-*/* ${build_wrksrc}/lib
}