apio
185757e2a7
1. Update the bc patch to remove an unnecessary line. 2. Update README.md to mention the port system. 3. Improve the port system!!
24 lines
345 B
Bash
Executable File
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" |