Files
termux-packages/packages/libimagequant/build.sh
termux-pacman-bot b4189dc24d bump(main/libimagequant): 4.3.3
This commit has been automatically submitted by Github Actions.
2024-08-06 00:52:33 +00:00

30 lines
920 B
Bash

TERMUX_PKG_HOMEPAGE=https://pngquant.org/lib/
TERMUX_PKG_DESCRIPTION="Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_LICENSE_FILE="COPYRIGHT"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION="4.3.3"
TERMUX_PKG_SRCURL=https://github.com/ImageOptim/libimagequant/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=c50a59003a4c4ce53c76314e62f1e86d86d882bc09addb13daa0faa9260b9614
TERMUX_PKG_AUTO_UPDATE=true
TERMUX_PKG_UPDATE_TAG_TYPE="newest-tag"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_pre_configure() {
TERMUX_PKG_SRCDIR+="/imagequant-sys"
TERMUX_PKG_BUILDDIR="$TERMUX_PKG_SRCDIR"
}
termux_step_make() {
:
}
termux_step_make_install() {
termux_setup_rust
termux_setup_cargo_c
cargo cinstall \
--target $CARGO_TARGET_NAME \
--prefix $TERMUX_PREFIX \
--jobs $TERMUX_PKG_MAKE_PROCESSES
}