diff options
author | davidovski <david@davidovski.xyz> | 2022-04-20 22:40:49 +0000 |
---|---|---|
committer | davidovski <david@davidovski.xyz> | 2022-04-20 22:40:49 +0000 |
commit | 1084afc3c4d9c83e61620de60ba59a4393a33cb0 (patch) | |
tree | 17b2e37df0f1d61a83566fda5f707faffab54628 /repo/util/mksh.xibuild | |
parent | c35d083dc525e223b085ec00e6863ea6eafb003c (diff) |
fixed create to work within env
Diffstat (limited to 'repo/util/mksh.xibuild')
-rw-r--r-- | repo/util/mksh.xibuild | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/repo/util/mksh.xibuild b/repo/util/mksh.xibuild new file mode 100644 index 0000000..d946695 --- /dev/null +++ b/repo/util/mksh.xibuild @@ -0,0 +1,31 @@ +#!/bin/sh + +MAKEDEPS="make " +DEPS="sbase musl" + +PKG_VER=59c +SOURCE=https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R$PKG_VER.tgz +DESC="MirBSD Korn Shell" + +prepare () { + rmdir mksh + sed -i check.t -e '/^name: selftest-tty-absent$/,/^---$/d' +} + +build () { + sh Build.sh -r +} + +package () { + install -Dm755 mksh $PKG_DEST/bin/mksh + install -Dm644 dot.mkshrc $PKG_DEST/etc/skel/.mkshrc + install -Dm644 mksh.1 $PKG_DEST/usr/share/man/man1/mksh.1 +} + +postinstall () { + command -v mksh || exit 1 + + if [ -f /etc/shells ] || grep -vq "mksh" /etc/shells; then + echo "/bin/mksh" >> /etc/shells + fi +} |