Luna/tools/install-built-ports.sh
apio 1a82bbb234 ports: Add a port system
The only port right now is bc, which works... kind of.
It compiles, and runs, but is really janky. At least it runs!!
2022-10-23 16:44:50 +02:00

28 lines
436 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT/ports
if ! [ -f ./ports.list ]
then
echo "No ports built."
fi
install_port()
{
export portdir=$PWD/$1
export workdir=$portdir/workdir
source $portdir/package.sh
echo "installing port: $pkgname version $pkgver"
mkdir -p $installdir
cd $installdir
port_install
}
while read package; do
install_port $package
done < ./ports.list