25 lines
882 B
Bash
25 lines
882 B
Bash
# Template file for 'pngquant'
|
|
pkgname=pngquant
|
|
version=2.8.2
|
|
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="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
license="GPL-3"
|
|
homepage="https://pngquant.org/"
|
|
distfiles="https://github.com/pornel/${pkgname}/archive/${version}.tar.gz
|
|
https://github.com/ImageOptim/libimagequant/archive/36f186f9159d3c2816ceba89ee25dfda75728654.tar.gz"
|
|
checksum="9e16dabb295da3593d9d55105dab2c2e7bf5681254cde3e8bed225f356bca488
|
|
26e9a21e1bc2552c260834220644cfdbdd0534e6f43100e84d96b79cf932f913"
|
|
|
|
post_extract() {
|
|
cp -r libimagequant-*/* ${build_wrksrc}/lib
|
|
}
|