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