libimagequant: update to 4.2.2.
This commit is contained in:
parent
1178584ae8
commit
f53716f541
|
@ -1,28 +1,31 @@
|
|||
# Template file for 'libimagequant'
|
||||
pkgname=libimagequant
|
||||
version=2.18.0
|
||||
version=4.2.2
|
||||
revision=1
|
||||
build_style=configure
|
||||
configure_args="--with-openmp"
|
||||
make_build_target="static shared"
|
||||
makedepends="libgomp-devel"
|
||||
build_wrksrc="imagequant-sys"
|
||||
build_style="cargo"
|
||||
hostmakedepends="cargo-c"
|
||||
short_desc="Palette quantization library"
|
||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||
license="GPL-3.0-or-later"
|
||||
homepage="https://pngquant.org/lib/"
|
||||
distfiles="https://github.com/ImageOptim/libimagequant/archive/${version}.tar.gz"
|
||||
checksum=790d2593a587f9a27cec6245ee7a212b34b0aa63cac6383e550eda01236be636
|
||||
checksum=ff1a34d3df9a1a5e5c1fa3895c036a885dc7b9740d7fccdf57e9ed678b8fb3a3
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
x86_64*) configure_args+=" --enable-sse";;
|
||||
*) configure_args+=" --disable-sse";;
|
||||
esac
|
||||
do_build() {
|
||||
cargo auditable cbuild --release --target ${RUST_TARGET} \
|
||||
--library-type cdylib --library-type staticlib \
|
||||
--destdir="${DESTDIR}" --prefix="/usr"
|
||||
}
|
||||
|
||||
do_check() {
|
||||
cargo auditable ctest --release --target ${RUST_TARGET}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
vinstall libimagequant.h 644 usr/include
|
||||
vinstall libimagequant.a 644 usr/lib
|
||||
vinstall libimagequant.so.0 755 usr/lib
|
||||
ln -sf libimagequant.so.0 ${DESTDIR}/usr/lib/libimagequant.so
|
||||
cargo auditable cinstall --release --target ${RUST_TARGET} \
|
||||
--library-type cdylib --library-type staticlib \
|
||||
--destdir="${DESTDIR}" --prefix="/usr" --offline --locked
|
||||
}
|
||||
|
||||
libimagequant-devel_package() {
|
||||
|
@ -30,6 +33,7 @@ libimagequant-devel_package() {
|
|||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove "usr/lib/pkgconfig"
|
||||
vmove "usr/lib/*.a"
|
||||
vmove "usr/lib/*.so"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue