Commit bcc249d7 authored by David Spencer's avatar David Spencer

Update build+install script.

Support build-order file to define build order.
Don't build already installed packages.
SlackBuild files need to be executable.
parent 0e0c6b2d
......@@ -22,24 +22,36 @@ set -eu
cd slackbuilds
if [ $# = 0 ]; then
set -- *
if [ -f build-order ]; then
set -- $(cat build-order)
else
set -- *
fi
fi
while [ $# != 0 ]; do
prgnam="$1"
shift
cd "$prgnam"
if [ -z $(find /var/log/packages/ -name "${prgnam}-*-*-*" -maxdepth 1) ]; then
cd "$prgnam"
echo
echo "+----------------------------------------------------------------------+"
echo "| Building $prgnam"
echo "+----------------------------------------------------------------------+"
echo
. ./"$prgnam".info
curl -J -L -O "$DOWNLOAD" || true
OUTPUT=$(pwd) ./"$prgnam".SlackBuild
installpkg "$prgnam"-*-*-*.t?z
rm -f "$(basename "$DOWNLOAD")" "$prgnam"-*-*-*.t?z
cd - >/dev/null
else
echo
echo "+----------------------------------------------------------------------+"
echo "| Building $prgnam"
echo "| Skipping $prgnam (already installed)"
echo "+----------------------------------------------------------------------+"
echo
. ./"$prgnam".info
curl -J -L -O "$DOWNLOAD" || true
OUTPUT=$(pwd) sh ./"$prgnam".SlackBuild
upgradepkg --install-new --reinstall "$prgnam"-*-*-*.t?z
rm -f "$(basename "$DOWNLOAD")" "$prgnam"-*-*-*.t?z
cd - >/dev/null
fi
done
#-----------------------------------------------------------------------
......
python3
python-braceexpand
libversion
py-libversion
cve-check-tool
vxquery
File mode changed from 100644 to 100755
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