linux-qubasis
linux oasis port as a qubes template
git clone https://9o.is/git/linux-qubasis.git
commit 71f8a9bdb0a1aadbdbc877f473e705752ce18ee4 parent cfb195c7774928363e567f4c24508a5892f85d24 Author: Jul <jul@9o.is> Date: Mon, 6 Oct 2025 19:08:25 +0800 add fe to alpine-template Diffstat:
| M | gen.sh | | | 1 | + |
| D | pkg/fe/build | | | 14 | -------------- |
| M | pkg/fe/config.h | | | 9 | --------- |
| A | pkg/fe/gen.sh | | | 20 | ++++++++++++++++++++ |
| M | tpl/alpine-template/gen.sh | | | 1 | + |
5 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/gen.sh b/gen.sh @@ -23,6 +23,7 @@ subgen pkg/b3sum subgen pkg/bestline subgen pkg/byacc subgen pkg/e2fsprogs +subgen pkg/fe subgen pkg/fspec-sync subgen pkg/less subgen pkg/libtermkey diff --git a/pkg/fe/build b/pkg/fe/build @@ -1,14 +0,0 @@ -#!/bin/sh -set -euo pipefail - -repodir="$srcdir/repo" - -rm -rf "$outdir" -cp "$srcdir/config.h" "$repodir" - -make -C "$repodir" -make DESTDIR="$outdir" PREFIX=/usr -C "$repodir" install - -if [ "$local_install" == "true" ]; then - sudo make -C "$repodir" PREFIX=/usr install -fi diff --git a/pkg/fe/config.h b/pkg/fe/config.h @@ -1,7 +1,3 @@ -#ifdef __cplusplus -extern "C" { -#endif - #include "tty.h" #define COLOR_DIRECTORY TTY_COLOR_BLUE @@ -19,8 +15,3 @@ extern "C" { #define SORT_ICASE 1; #define SORT_MTIME 0; #define SHOW_HIDDEN 1; - -#ifdef __cplusplus -} -#endif - diff --git a/pkg/fe/gen.sh b/pkg/fe/gen.sh @@ -0,0 +1,20 @@ +fetch git + +cflags " + -std=c99 + -D _GNU_SOURCE + -D VERSION='\"0.1\"' + -I $srcdir + -I $dir +" + +exe fe " + entries.c + fe.c + options.c + spawn.c + tty.c + tty_interface.c +" + +bin fe diff --git a/tpl/alpine-template/gen.sh b/tpl/alpine-template/gen.sh @@ -1,4 +1,5 @@ template alpine-template +pkg fe pkg rc pkg vis pkg netbsd-curses /share/misc/terminfo