Cleanup of more packages
[termux-packages] / packages / pforth / build.sh
1 TERMUX_PKG_HOMEPAGE=http://www.softsynth.com/pforth/
2 TERMUX_PKG_DESCRIPTION="Portable Forth in C"
3 _COMMIT=706b5e4b7faffb3fb4c58651be5df3e4bd2be794
4 TERMUX_PKG_VERSION=20160530
5 TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip
6 TERMUX_PKG_FOLDERNAME=pforth-${_COMMIT}
7 TERMUX_PKG_HOSTBUILD=yes
8
9 termux_step_host_build () {
10 cd build/unix
11 CC=gcc make pfdicdat.h
12 CC=gcc make all
13 }
14
15 termux_step_pre_configure () {
16 for file in pfdicdat.h pforth; do
17 cp $TERMUX_PKG_HOSTBUILD_DIR/build/unix/$file $TERMUX_PKG_SRCDIR/build/unix/$file
18 $TERMUX_TOUCH -d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
19 done
20
21 export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix
22 export CC="$CC $CFLAGS"
23 }
24 termux_step_make_install () {
25 cp $TERMUX_PKG_BUILDDIR/pforth_standalone $TERMUX_PREFIX/bin/pforth
26 }