community/gdu: set default shell to ash

This commit is contained in:
George Hopkins 2024-04-09 15:42:52 +02:00 committed by Kevin Daudt
parent 73c3aad806
commit b871a00f1a
2 changed files with 18 additions and 2 deletions

View File

@ -3,14 +3,16 @@
pkgname=gdu
pkgver=5.28.0
_majorver=${pkgver%%.*}
pkgrel=0
pkgrel=1
pkgdesc="Fast disk usage calculator with console interface"
url="https://github.com/dundee/gdu"
arch="all"
license="MIT"
makedepends="go gzip"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/dundee/gdu/archive/refs/tags/v$pkgver.tar.gz"
source="$pkgname-$pkgver.tar.gz::https://github.com/dundee/gdu/archive/refs/tags/v$pkgver.tar.gz
ash.patch
"
export GOFLAGS="$GOFLAGS -modcacherw"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
@ -57,4 +59,5 @@ package() {
sha512sums="
cb7b71553fccbe40d294259e649ecb6b258c283375dadb565da857b277aba4d6c5e773418adf4077e9319d25f61f0f5e1d50ce9633734010d88a16064af68768 gdu-5.28.0.tar.gz
6b19ef6f63670fcca6e893fb713a96635d850b0b5063dfe96427e9f29875e314c91f1bbdcbfe156314005e3b953346f814a6dd53702f026b2242a3b73734f8bb ash.patch
"

13
community/gdu/ash.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/tui/exec_other.go b/tui/exec_other.go
index 6fd0b91..04b938d 100644
--- a/tui/exec_other.go
+++ b/tui/exec_other.go
@@ -11,7 +11,7 @@ import (
func getShellBin() string {
shellbin, ok := os.LookupEnv("SHELL")
if !ok {
- shellbin = "/bin/bash"
+ shellbin = "/bin/ash"
}
return shellbin
}