termux-packages/x11-packages/scite/build.sh

36 lines
1.0 KiB
Bash
Raw Normal View History

2022-04-27 10:01:10 +02:00
TERMUX_PKG_HOMEPAGE=https://www.scintilla.org/SciTE.html
TERMUX_PKG_DESCRIPTION="A free source code editor"
# License: HPND
TERMUX_PKG_LICENSE="custom"
TERMUX_PKG_LICENSE_FILE="scite/License.txt"
TERMUX_PKG_MAINTAINER="@termux"
TERMUX_PKG_VERSION=5.2.2
TERMUX_PKG_SRCURL=https://www.scintilla.org/scite${TERMUX_PKG_VERSION//./}.tgz
TERMUX_PKG_SHA256=ad33019fdcf001ed441e88169593c3efebe77542f10bbc3e5a20a34e196586e0
TERMUX_PKG_DEPENDS="atk, gdk-pixbuf, glib, gtk3, libc++, libcairo, pango"
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_EXTRA_MAKE_ARGS="
CLANG=1
GTK3=1
NO_LUA=1
"
termux_extract_src_archive() {
local file="$TERMUX_PKG_CACHEDIR/$(basename "${TERMUX_PKG_SRCURL}")"
mkdir -p "$TERMUX_PKG_SRCDIR"
tar xf "$file" -C "$TERMUX_PKG_SRCDIR" --strip-components=0
}
termux_step_make() {
local d
for d in lexilla/src scintilla/gtk scite/gtk; do
make -j ${TERMUX_MAKE_PROCESSES} -C ${d} \
${TERMUX_PKG_EXTRA_MAKE_ARGS}
done
}
termux_step_make_install() {
make -j ${TERMUX_MAKE_PROCESSES} -C scite/gtk install \
${TERMUX_PKG_EXTRA_MAKE_ARGS}
}