Adds gettext software (#792)
[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=f1994bf609c5b053c5c0d7db2062b570fa9f5ead
4 TERMUX_PKG_VERSION=20170116
5 TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip
6 TERMUX_PKG_SHA256=fffd7aec1f6601c48a9e2baa284c82d4b22a77f5860a49d83bd811ca4ea18a05
7 TERMUX_PKG_FOLDERNAME=pforth-${_COMMIT}
8 TERMUX_PKG_HOSTBUILD=yes
9
10 termux_step_host_build () {
11 cp -Rf $TERMUX_PKG_SRCDIR/* .
12 cd build/unix
13 CC=gcc make pfdicdat.h
14 CC=gcc make all
15 }
16
17 termux_step_pre_configure () {
18 for file in pfdicdat.h pforth; do
19 cp $TERMUX_PKG_HOSTBUILD_DIR/build/unix/$file $TERMUX_PKG_SRCDIR/build/unix/$file
20 $TERMUX_TOUCH -d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
21 done
22
23 export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix
24 export CC="$CC $CFLAGS"
25 }
26 termux_step_make_install () {
27 cp $TERMUX_PKG_BUILDDIR/pforth_standalone $TERMUX_PREFIX/bin/pforth
28 }