From 7d0753f5019afc307760b9b66693b8a062c8c531 Mon Sep 17 00:00:00 2001 From: Ella-0 <23418164+Ella-0@users.noreply.github.com> Date: Mon, 1 Feb 2021 19:27:18 +0000 Subject: [PATCH] Add lksh to mksh package and make default shell --- pkgs/mksh/build.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/mksh/build.sh b/pkgs/mksh/build.sh index bfb6c69..96e180e 100644 --- a/pkgs/mksh/build.sh +++ b/pkgs/mksh/build.sh @@ -5,12 +5,13 @@ bad="" ext="doc" fetch() { - curl http://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz -o $pkgname-$pkgver.tar.gz + curl https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz -o $pkgname-$pkgver.tar.gz tar -xf $pkgname-$pkgver.tar.gz } build() { cd $pkgname + CPPFLAGS="-DMKSH_BINSHPOSIX" sh Build.sh -L sh Build.sh } @@ -18,13 +19,16 @@ package() { cd $pkgname install -d $pkgdir/bin install -Dm755 ./mksh $pkgdir/bin + install -Dm755 ./lksh $pkgdir/bin ln -sr $pkgdir/bin/mksh $pkgdir/bin/bash + ln -sr $pkgdir/bin/lksh $pkgdir/bin/sh } package_doc() { cd $pkgname install -d $pkgdir/usr/share/man/man1 install -Dm 644 ./mksh.1 $pkgdir/usr/share/man/man1 + install -Dm 644 ./lksh.1 $pkgdir/usr/share/man/man1 } license() {