From baef21aecdf9913443c3dd0891ae90bb48e9d5e8 Mon Sep 17 00:00:00 2001 From: John S Peterson Date: Fri, 30 Aug 2024 10:28:31 +0300 Subject: [PATCH] add astyle automatic source indentation --- tur/astyle/build.sh | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 tur/astyle/build.sh diff --git a/tur/astyle/build.sh b/tur/astyle/build.sh new file mode 100644 index 000000000..6d20faa01 --- /dev/null +++ b/tur/astyle/build.sh @@ -0,0 +1,41 @@ +TERMUX_PKG_HOMEPAGE=https://astyle.sourceforge.net/ +TERMUX_PKG_DESCRIPTION=" automatic indentation of source files " +TERMUX_PKG_LICENSE="GPL-2.0" +TERMUX_PKG_MAINTAINER="@tur" +TERMUX_PKG_VERSION=$(date +"%y%m%d") +TERMUX_PKG_REVISION=1 +TERMUX_PKG_SRCURL=svn+https://svn.code.sf.net/p/astyle/code/trunk/AStyle +#TERMUX_PKG_GIT_BRANCH=android +TERMUX_PKG_DEPENDS=" " +TERMUX_PKG_BUILD_DEPENDS=" clang" +TERMUX_PKG_AUTO_UPDATE=true +TERMUX_PKG_BUILD_IN_SRC=true +TERMUX_PKG_EXTRA_CONFIGURE_ARGS=" + +" +TERMUX_PKG_EXTRA_MAKE_ARGS=" +V=1 +-C build/clang +" +if $TERMUX_ON_DEVICE_BUILD; then TERMUX_PKG_MAKE_PROCESSES=1;fi + +if !$TERMUX_ON_DEVICE_BUILD; then +echo " tested and works but this script might need tweaks to run " +read +fi + +termux_step_post_get_source() { + +} + +termux_step_pre_configure() { + +} + +termux_step_post_configure(){ + local CFLAGS+=" -w -Wno-error -Wfatal-errors" +} + +termux_step_make_install() { + install -Dm755 -t "${TERMUX_PREFIX}"/build/clang/bin/astyle astyle +} \ No newline at end of file