|
@ -187,12 +187,6 @@ TERMUX_PKG_MAINTAINER="Fredrik Fornwall <fredrik@fornwall.net>" |
|
|
|
|
|
|
|
|
# Cleanup old state |
|
|
# Cleanup old state |
|
|
rm -Rf $TERMUX_PKG_BUILDDIR $TERMUX_PKG_PACKAGEDIR $TERMUX_PKG_SRCDIR $TERMUX_PKG_TMPDIR $TERMUX_PKG_MASSAGEDIR |
|
|
rm -Rf $TERMUX_PKG_BUILDDIR $TERMUX_PKG_PACKAGEDIR $TERMUX_PKG_SRCDIR $TERMUX_PKG_TMPDIR $TERMUX_PKG_MASSAGEDIR |
|
|
# Ensure folders present (but not $TERMUX_PKG_SRCDIR, it will be created in build) |
|
|
|
|
|
mkdir -p $TERMUX_PKG_BUILDDIR $TERMUX_PKG_PACKAGEDIR $TERMUX_PKG_TMPDIR $TERMUX_PKG_CACHEDIR $TERMUX_PKG_MASSAGEDIR $PKG_CONFIG_LIBDIR $TERMUX_PREFIX/{bin,etc,lib,libexec,share,tmp} |
|
|
|
|
|
|
|
|
|
|
|
# Make $TERMUX_PREFIX/bin/sh executable on the builder, so that build script can assume that it works |
|
|
|
|
|
# on both builder and host later on: |
|
|
|
|
|
ln -f -s /bin/sh $TERMUX_PREFIX/bin/sh |
|
|
|
|
|
|
|
|
|
|
|
# If $TERMUX_PREFIX already exists, it may have been built for a different arch |
|
|
# If $TERMUX_PREFIX already exists, it may have been built for a different arch |
|
|
TERMUX_ARCH_FILE=/data/TERMUX_ARCH |
|
|
TERMUX_ARCH_FILE=/data/TERMUX_ARCH |
|
@ -220,6 +214,13 @@ if [ -f "${TERMUX_ARCH_FILE}" ]; then |
|
|
fi |
|
|
fi |
|
|
echo $TERMUX_ARCH > $TERMUX_ARCH_FILE |
|
|
echo $TERMUX_ARCH > $TERMUX_ARCH_FILE |
|
|
|
|
|
|
|
|
|
|
|
# Ensure folders present (but not $TERMUX_PKG_SRCDIR, it will be created in build) |
|
|
|
|
|
mkdir -p $TERMUX_PKG_BUILDDIR $TERMUX_PKG_PACKAGEDIR $TERMUX_PKG_TMPDIR $TERMUX_PKG_CACHEDIR $TERMUX_PKG_MASSAGEDIR $PKG_CONFIG_LIBDIR $TERMUX_PREFIX/{bin,etc,lib,libexec,share,tmp} |
|
|
|
|
|
|
|
|
|
|
|
# Make $TERMUX_PREFIX/bin/sh executable on the builder, so that build script can assume that it works |
|
|
|
|
|
# on both builder and host later on: |
|
|
|
|
|
ln -f -s /bin/sh $TERMUX_PREFIX/bin/sh |
|
|
|
|
|
|
|
|
if [ ! -f $PKG_CONFIG ]; then |
|
|
if [ ! -f $PKG_CONFIG ]; then |
|
|
echo "Creating pkg-config wrapper..." |
|
|
echo "Creating pkg-config wrapper..." |
|
|
# We use path to host pkg-config to avoid picking up a cross-compiled pkg-config later on |
|
|
# We use path to host pkg-config to avoid picking up a cross-compiled pkg-config later on |
|
|