ports: Add xbanan port

This allows running x apps on top of my own GUI interface!
This commit is contained in:
2026-03-23 17:47:11 +02:00
parent f42c5c4a5b
commit a4d83f9fdb
4 changed files with 105 additions and 0 deletions

30
ports/xbanan/build.sh Executable file
View File

@@ -0,0 +1,30 @@
#!/bin/bash ../install.sh
NAME='xbanan'
VERSION='git'
DOWNLOAD_URL="https://git.bananymous.com/Bananymous/xbanan.git#b228ef13c41adff2738acaeda5db804ebf493bfd"
DEPENDENCIES=('mesa' 'libX11' 'xorgproto')
configure() {
cmake --fresh -B build -S . -G Ninja \
--toolchain="$BANAN_TOOLCHAIN_DIR/Toolchain.txt" \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
|| exit 1
}
build() {
cmake --build build --target xbanan || exit 1
}
install() {
cp -v build/xbanan/xbanan "$BANAN_SYSROOT/usr/bin" || exit 1
mkdir -p "$BANAN_SYSROOT/usr/share/fonts/X11"
cp -r fonts/misc "$BANAN_SYSROOT/usr/share/fonts/X11/" || exit 1
}
post_install() {
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
grep -q 'export DISPLAY=' "$shellrc" || echo 'export DISPLAY=:69' >> "$shellrc"
}