termux-packages/packages/pngquant/build.sh

19 lines
937 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"
2018-11-01 03:23:42 +01:00
TERMUX_PKG_VERSION=2.12.2
TERMUX_PKG_SHA256=(5edf7c5bffd07e5d28fcc6d4d94a187c30b532c52ac986b3e45aff3dce0567dc
2019-02-09 12:16:54 +01:00
34036379d3b68de79b5f180b3fe3989b9d2e81c1909ee3f85acaedb74f46003b)
# 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)
2018-06-26 06:38:49 +02:00
TERMUX_PKG_DEPENDS="libpng, littlecms"
2017-12-02 17:43:12 +01:00
TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--disable-sse"
termux_step_post_extract_package() {
mv $TERMUX_PKG_SRCDIR/libimagequant-$TERMUX_PKG_VERSION/* $TERMUX_PKG_SRCDIR/lib/
2017-12-02 17:43:12 +01:00
}