Skip to content

Commit baef21a

Browse files
committed
add astyle automatic source indentation
1 parent 9a3421b commit baef21a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

tur/astyle/build.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
TERMUX_PKG_HOMEPAGE=https://astyle.sourceforge.net/
2+
TERMUX_PKG_DESCRIPTION=" automatic indentation of source files "
3+
TERMUX_PKG_LICENSE="GPL-2.0"
4+
TERMUX_PKG_MAINTAINER="@tur"
5+
TERMUX_PKG_VERSION=$(date +"%y%m%d")
6+
TERMUX_PKG_REVISION=1
7+
TERMUX_PKG_SRCURL=svn+https://svn.code.sf.net/p/astyle/code/trunk/AStyle
8+
#TERMUX_PKG_GIT_BRANCH=android
9+
TERMUX_PKG_DEPENDS=" "
10+
TERMUX_PKG_BUILD_DEPENDS=" clang"
11+
TERMUX_PKG_AUTO_UPDATE=true
12+
TERMUX_PKG_BUILD_IN_SRC=true
13+
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
14+
15+
"
16+
TERMUX_PKG_EXTRA_MAKE_ARGS="
17+
V=1
18+
-C build/clang
19+
"
20+
if $TERMUX_ON_DEVICE_BUILD; then TERMUX_PKG_MAKE_PROCESSES=1;fi
21+
22+
if !$TERMUX_ON_DEVICE_BUILD; then
23+
echo " tested and works but this script might need tweaks to run "
24+
read
25+
fi
26+
27+
termux_step_post_get_source() {
28+
29+
}
30+
31+
termux_step_pre_configure() {
32+
33+
}
34+
35+
termux_step_post_configure(){
36+
local CFLAGS+=" -w -Wno-error -Wfatal-errors"
37+
}
38+
39+
termux_step_make_install() {
40+
install -Dm755 -t "${TERMUX_PREFIX}"/build/clang/bin/astyle astyle
41+
}

0 commit comments

Comments
 (0)