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