ports: Allow build scripts install to custom path

This will maybe allow packaging ports :)
This commit is contained in:
2026-05-25 15:52:22 +03:00
parent c79e412215
commit bb170ba613
50 changed files with 92 additions and 82 deletions

View File

@@ -22,13 +22,12 @@ build() {
}
install() {
./waf install --destdir=$BANAN_SYSROOT/home/user/halflife || exit 1
patchelf --add-needed libxash.so $BANAN_SYSROOT/home/user/halflife/xash3d
./waf install --destdir="$DESTDIR/usr/share/games/halflife" || exit 1
cat > $BANAN_SYSROOT/home/user/halflife/start.sh << EOF
cat > "$DESTDIR/home/user/halflife/start.sh" << EOF
#!/bin/Shell
export LD_LIBRARY_PATH=/home/user/halflife
./xash3d -console
EOF
chmod +x $BANAN_SYSROOT/home/user/halflife/start.sh
chmod +x $DESTDIR/home/user/halflife/start.sh
}