termux-packages/packages/pngquant/build.sh

19 lines
919 B
Bash
Raw Normal View History

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"
2019-01-21 13:53:58 +01:00
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
2021-02-07 21:20:05 +01:00
TERMUX_PKG_VERSION=2.14.0
# If both archives are .tar.gz then they overwrite eachother since they are the same version and hence the same name.
# Work around this by using .zip for one of them...
TERMUX_PKG_SRCURL=(https://github.com/pornel/pngquant/archive/$TERMUX_PKG_VERSION.tar.gz
https://github.com/ImageOptim/libimagequant/archive/$TERMUX_PKG_VERSION.zip)
2021-02-07 21:20:05 +01:00
TERMUX_PKG_SHA256=(6e43c7125b3ffd1dc52d1da3a352009e98a617c70c024b23ad38f0be7e3f614e
9132648202f1d2018649ed83440bd943af0416fb2dcc7f4d1c0134242090f141)
2019-04-14 14:51:46 +02:00
TERMUX_PKG_DEPENDS="libpng, littlecms, zlib"
2017-12-02 17:43:12 +01:00
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-sse"
termux_step_post_get_source() {
mv $TERMUX_PKG_SRCDIR/libimagequant-$TERMUX_PKG_VERSION/* $TERMUX_PKG_SRCDIR/lib/
2017-12-02 17:43:12 +01:00
}