Skip to content

Commit b6add59

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

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

tur/astyle/build.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
else
26+
echo "not tested off device"
27+
read
28+
fi
29+
30+
termux_step_post_get_source() {
31+
32+
}
33+
34+
termux_step_pre_configure() {
35+
36+
}
37+
38+
termux_step_post_configure(){
39+
local CFLAGS+=" -w -Wno-error -Wfatal-errors"
40+
}
41+
42+
termux_step_make_install() {
43+
install -Dm755 -t "${TERMUX_PREFIX}"/build/clang/bin/astyle astyle
44+
}

0 commit comments

Comments
 (0)