41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'libimagequant'
|
|
pkgname=libimagequant
|
|
version=4.3.3
|
|
revision=1
|
|
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=c50a59003a4c4ce53c76314e62f1e86d86d882bc09addb13daa0faa9260b9614
|
|
|
|
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() {
|
|
cargo auditable cinstall --release --target ${RUST_TARGET} \
|
|
--library-type cdylib --library-type staticlib \
|
|
--destdir="${DESTDIR}" --prefix="/usr" --offline --locked
|
|
}
|
|
|
|
libimagequant-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/pkgconfig"
|
|
vmove "usr/lib/*.a"
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|