diff --git a/package/toltec-base/package b/package/toltec-base/package index be161fc8a..87dd4aa26 100644 --- a/package/toltec-base/package +++ b/package/toltec-base/package @@ -6,7 +6,7 @@ archs=(rm1 rm2) pkgnames=(toltec-base) pkgdesc="Metapackage defining the base set of packages in a Toltec install" url=https://toltec-dev.org/ -pkgver=1.2-1 +pkgver=1.2-2 timestamp=2023-05-08T19:31Z section="utils" maintainer="Eeems " @@ -24,6 +24,11 @@ package() { } configure() { + ln -sf /opt/etc/profile /etc/profile.d/toltec.sh + # shellcheck disable=SC2016 + sed -i \ + -e 's|^export TERM=xterm|if \[ -z "$TERM" \];then export TERM=xterm;fi|' \ + /opt/etc/profile if is-enabled "update-engine.service"; then echo "Disabling automatic update" systemctl disable --now update-engine diff --git a/package/yaft/bash-l.patch b/package/yaft/bash-l.patch new file mode 100644 index 000000000..ad6d27be7 --- /dev/null +++ b/package/yaft/bash-l.patch @@ -0,0 +1,13 @@ +diff --git a/apps/yaft/main.cpp b/apps/yaft/main.cpp +index baa1f56..1d4ee6a 100755 +--- a/apps/yaft/main.cpp ++++ b/apps/yaft/main.cpp +@@ -200,7 +200,7 @@ main(int argc, const char* argv[]) { + extern volatile sig_atomic_t need_redraw; + extern volatile sig_atomic_t child_alive; + extern struct termios termios_orig; +- static const char* shell_args[2] = { shell_cmd, NULL }; ++ static const char* shell_args[3] = { shell_cmd, "-l", NULL }; + + Keyboard keyboard; + diff --git a/package/yaft/package b/package/yaft/package index a79d95d26..8bc4e5154 100644 --- a/package/yaft/package +++ b/package/yaft/package @@ -6,26 +6,29 @@ pkgnames=(yaft) pkgdesc="Yet another framebuffer terminal" url=https://github.com/timower/rM2-stuff/tree/master/apps/yaft _tag=0.0.8 -pkgver=${_tag}-1 +pkgver=${_tag}-2 timestamp=2021-05-02T09:23Z maintainer="Mattéo Delabre " license=GPL-3.0 section="admin" image=base:v2.3 -installdepends=(display) +installdepends=(display terminfo) source=( "https://github.com/timower/rM2-stuff/archive/refs/tags/v${_tag}.zip" input.patch + bash-l.patch ) sha256sums=( 718a9fc7a8e26d587bac790fd83ad8242978b59745269b2ff213e04820bf45b8 SKIP + SKIP ) build() { patch -u libs/rMlib/Device.cpp -i input.patch + patch -u apps/yaft/main.cpp -i bash-l.patch mkdir build mkdir install cd build