~mdw
/
termux-packages
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ldc: Update from 1.6 to 1.7
[termux-packages]
/
packages
/
pforth
/
build.sh
diff --git
a/packages/pforth/build.sh
b/packages/pforth/build.sh
index
21ecfad
..
836c27f
100644
(file)
--- a/
packages/pforth/build.sh
+++ b/
packages/pforth/build.sh
@@
-1,21
+1,33
@@
TERMUX_PKG_HOMEPAGE=http://www.softsynth.com/pforth/
TERMUX_PKG_DESCRIPTION="Portable Forth in C"
TERMUX_PKG_HOMEPAGE=http://www.softsynth.com/pforth/
TERMUX_PKG_DESCRIPTION="Portable Forth in C"
-_COMMIT=
706b5e4b7faffb3fb4c58651be5df3e4bd2be794
-TERMUX_PKG_VERSION=201
60530
+_COMMIT=
f1994bf609c5b053c5c0d7db2062b570fa9f5ead
+TERMUX_PKG_VERSION=201
70116
TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip
TERMUX_PKG_SRCURL=https://github.com/philburk/pforth/archive/${_COMMIT}.zip
-TERMUX_PKG_
FOLDERNAME=pforth-${_COMMIT}
+TERMUX_PKG_
SHA256=fffd7aec1f6601c48a9e2baa284c82d4b22a77f5860a49d83bd811ca4ea18a05
TERMUX_PKG_HOSTBUILD=yes
TERMUX_PKG_HOSTBUILD=yes
+TERMUX_PKG_REVISION=1
+
+termux_step_post_configure () {
+ # Avoid caching the host build as it differs between arches
+ # and is quite fast here anyway:
+ rm -Rf $TERMUX_PKG_HOSTBUILD_DIR
+}
termux_step_host_build () {
termux_step_host_build () {
+ local M32=""
+ if [ $TERMUX_ARCH_BITS = "32" ]; then
+ M32="-m32"
+ fi
+ cp -Rf $TERMUX_PKG_SRCDIR/* .
cd build/unix
cd build/unix
- CC=
gcc
make pfdicdat.h
- CC=
gcc
make all
+ CC=
"gcc $M32"
make pfdicdat.h
+ CC=
"gcc $M32"
make all
}
termux_step_pre_configure () {
for file in pfdicdat.h pforth; do
cp $TERMUX_PKG_HOSTBUILD_DIR/build/unix/$file $TERMUX_PKG_SRCDIR/build/unix/$file
}
termux_step_pre_configure () {
for file in pfdicdat.h pforth; do
cp $TERMUX_PKG_HOSTBUILD_DIR/build/unix/$file $TERMUX_PKG_SRCDIR/build/unix/$file
-
$TERMUX_TOUCH
-d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
+
touch
-d "next hour" $TERMUX_PKG_SRCDIR/build/unix/$file
done
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix
done
export TERMUX_PKG_BUILDDIR=$TERMUX_PKG_SRCDIR/build/unix