Luna/ports/make-package.sh
apio 185757e2a7 600th commit!
1. Update the bc patch to remove an unnecessary line.
2. Update README.md to mention the port system.
3. Improve the port system!!
2022-10-23 17:15:38 +02:00

24 lines
345 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/../tools/env.sh
export DESTDIR=$PWD/pkgroot
export SKIP_ADD_TO_PORTS_LIST=1
source $LUNA_ROOT/ports/$1/package.sh
mkdir pkgroot
$LUNA_ROOT/ports/add-port.sh $pkgname
cd pkgroot
tar cJf ../$pkgname-$pkgver.pkg.tar.xz *
cd -
rm -rf pkgroot
echo "Built package $pkgname-$pkgver.pkg.tar.xz"