Compare commits

...

2 Commits

Author SHA1 Message Date
fb0fc29087 Adjust install-built-ports.sh 2022-10-23 19:27:34 +02:00
c7598b08e0 BUILD FASTER 2022-10-23 19:27:19 +02:00
2 changed files with 22 additions and 1 deletions

View File

@ -26,7 +26,7 @@ port_configure()
port_build()
{
make
make -j$(nproc)
}
port_install()

View File

@ -6,6 +6,24 @@ source $(dirname $0)/env.sh
cd $LUNA_ROOT/ports
unset_vars()
{
unset pkgname
unset pkgver
unset pkgurl
unset pkgmode
unset setupdir
unset builddir
unset installdir
unset srcdir
unset port_unpack
unset port_patch
unset port_configure
unset port_build
unset port_install
unset port_uninstall
}
if ! [ -f ./ports.list ]
then
echo "No ports built."
@ -13,6 +31,9 @@ fi
install_port()
{
unset_vars
cd $LUNA_ROOT/ports
export DESTDIR=${DESTDIR:-"$LUNA_ROOT/initrd"}
export portdir=$PWD/$1
export workdir=$portdir/workdir
source $portdir/package.sh