1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-20 02:37:06 +00:00
termux-packages/x11-packages/mtpaint/build.sh
Tee KOBAYASHI 8b6fc3d83d mtpaint: Migrate to GTK+3
and correctly bump to 3.50.09.
2023-02-14 07:07:38 +00:00

36 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_SRCURL=https://github.com/wjaguar/mtPaint/archive/${_COMMIT}.zip
TERMUX_PKG_SHA256=a5bcf9e98959506817cf39aafcf07a0403a4aab405031a46603f0eb7ca80f028
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}
}