0
0
mirror of https://github.com/termux/termux-packages.git synced 2024-11-13 14:09:19 +00:00
termux-packages/x11-packages/mtpaint/build.sh
Twaik Yont 5ccd380d43
chore(x11/mtpaint): force disable auto updates [no ci]
This is needed to avoid auto-updater script warnings.
2023-10-03 21:56:27 +03:00

38 lines
1.2 KiB
Bash

TERMUX_PKG_HOMEPAGE=https://sourceforge.net/projects/mtpaint/
TERMUX_PKG_DESCRIPTION="Simple paint program for creating icons and pixel based artwork"
TERMUX_PKG_LICENSE="GPL-3.0"
TERMUX_PKG_MAINTAINER="@termux"
_COMMIT=199472ad6a4ecee6c8583fb5a504a2e99712b4fc
TERMUX_PKG_VERSION=1:3.50.09
TERMUX_PKG_REVISION=1
TERMUX_PKG_SRCURL=https://github.com/wjaguar/mtPaint/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=a5bcf9e98959506817cf39aafcf07a0403a4aab405031a46603f0eb7ca80f028
TERMUX_PKG_AUTO_UPDATE=false
TERMUX_PKG_DEPENDS="atk, freetype, gdk-pixbuf, glib, gtk3, harfbuzz, libandroid-glob, libcairo, libiconv, libjpeg-turbo, libpng, libtiff, libwebp, libx11, littlecms, openjpeg, pango, zlib"
TERMUX_PKG_RECOMMENDS="gifsicle"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--prefix=$TERMUX_PREFIX
cflags
gtk3
jpeg
lcms2
man
tiff
"
termux_step_post_get_source() {
local v=$(sed -En 's/^MT_V="([^"]+)".*/\1/p' configure)
if [ "${v}" != "${TERMUX_PKG_VERSION#*:}" ]; then
termux_error_exit "Version string '$TERMUX_PKG_VERSION' does not seem to be correct."
fi
}
termux_step_pre_configure() {
LDFLAGS+=" -landroid-glob"
}
termux_step_configure() {
sh $TERMUX_PKG_SRCDIR/configure ${TERMUX_PKG_EXTRA_CONFIGURE_ARGS}
}