41 lines
1.1 KiB
Bash
41 lines
1.1 KiB
Bash
# Template file for 'libimagequant'
|
|
pkgname=libimagequant
|
|
version=4.3.0
|
|
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=7f590ed400def273381ac066f46b9f9e8b3e0b1985a5b7e82ca7a65541a6681b
|
|
|
|
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"
|
|
}
|
|
}
|