The only port right now is bc, which works... kind of. It compiles, and runs, but is really janky. At least it runs!!
23 lines
379 B
Bash
Executable File
23 lines
379 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
source $(dirname $0)/../tools/env.sh
|
|
|
|
source $LUNA_ROOT/ports/$1/package.sh
|
|
|
|
mkdir $PWD/pkgroot
|
|
|
|
DESTDIR=$PWD/pkgroot $LUNA_ROOT/ports/add-port.sh $pkgname
|
|
|
|
cd pkgroot
|
|
|
|
tar cJf ../$pkgname-$pkgver.pkg.tar.xz *
|
|
|
|
cd ..
|
|
|
|
DESTDIR=$PWD/pkgroot $LUNA_ROOT/ports/remove-port.sh $pkgname
|
|
|
|
rm -rf $PWD/pkgroot
|
|
|
|
echo "Built package $pkgname-$pkgver.pkg.tar.xz" |