2017-12-02 17:43:12 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://pngquant.org
|
2017-12-05 22:33:04 +01:00
|
|
|
TERMUX_PKG_DESCRIPTION="PNG image optimising utility"
|
2018-01-20 23:10:34 +01:00
|
|
|
TERMUX_PKG_VERSION=2.11.7
|
|
|
|
TERMUX_PKG_SHA256=0ca09a1f253b264e5aab8477b7f0e3cde51d9f88ed668b38ae057ced24076bda
|
2017-12-02 17:43:12 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://github.com/pornel/pngquant/archive/$TERMUX_PKG_VERSION.tar.gz
|
|
|
|
TERMUX_PKG_DEPENDS="libpng"
|
|
|
|
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
|
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-sse"
|
|
|
|
|
|
|
|
termux_step_post_extract_package () {
|
|
|
|
local LIBIMAGEQUANT_SRC_FOLDER=libimagequant-$TERMUX_PKG_VERSION
|
|
|
|
termux_download \
|
|
|
|
https://github.com/ImageOptim/libimagequant/archive/$TERMUX_PKG_VERSION.tar.gz \
|
|
|
|
$TERMUX_PKG_CACHEDIR/$LIBIMAGEQUANT_SRC_FOLDER.tar.gz \
|
2018-01-20 23:10:34 +01:00
|
|
|
aa5c9ae93f245f6703ca3f15c0ffe1ba647f66aac87bbfea0b58ebae9a4e37b5
|
2017-12-02 17:43:12 +01:00
|
|
|
|
|
|
|
tar -xf $TERMUX_PKG_CACHEDIR/$LIBIMAGEQUANT_SRC_FOLDER.tar.gz -C $TERMUX_PKG_SRCDIR
|
|
|
|
rmdir $TERMUX_PKG_SRCDIR/lib
|
|
|
|
mv $TERMUX_PKG_SRCDIR/$LIBIMAGEQUANT_SRC_FOLDER $TERMUX_PKG_SRCDIR/lib
|
|
|
|
}
|