mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2025-12-27 14:10:32 +00:00
28 lines
846 B
Bash
28 lines
846 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.2.0
|
|
TERMUX_PKG_SRCURL=https://github.com/ImageOptim/libimagequant/archive/refs/tags/${TERMUX_PKG_VERSION}.tar.gz
|
|
TERMUX_PKG_SHA256=716ffb2bc1594a4f9af324d7096129a37a3f9ebcee7f78a132282fbf2cf22fd8
|
|
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_MAKE_PROCESSES
|
|
}
|