Verified Commit bea4965b authored by Max Rees's avatar Max Rees
Browse files

abuild: add ABUILD_TMP for easier out-of-tree builds

parent e91c1ca5
...@@ -2558,12 +2558,18 @@ fi ...@@ -2558,12 +2558,18 @@ fi
APKBUILD=$(readlink -f "$APKBUILD") APKBUILD=$(readlink -f "$APKBUILD")
startdir="${APKBUILD%/*}" startdir="${APKBUILD%/*}"
srcdir=${ABUILD_SRCDIR:-"$startdir/src"}
pkgbasedir=${ABUILD_PKGBASEDIR:-"$startdir/pkg"}
repo=${startdir%/*} repo=${startdir%/*}
repo=${repo##*/} repo=${repo##*/}
if [ -n "$ABUILD_TMP" ]; then
srcdir="$ABUILD_TMP/$repo/${startdir##*/}/src"
pkgbasedir="$ABUILD_TMP/$repo/${startdir##*/}/pkg"
else
srcdir="${ABUILD_SRCDIR:-"$startdir/src"}"
pkgbasedir="${ABUILD_PKGBASEDIR:-"$startdir/pkg"}"
fi
SRCDEST=${SRCDEST:-$startdir} SRCDEST=${SRCDEST:-$startdir}
BUILD_ROOT= BUILD_ROOT=
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment