2021-01-12 11:06:46 +00:00
|
|
|
pkgver=59c
|
|
|
|
pkgname=mksh
|
2021-01-31 11:09:14 +00:00
|
|
|
deps="musl"
|
2021-01-12 11:06:46 +00:00
|
|
|
bad=""
|
|
|
|
ext="doc"
|
|
|
|
|
|
|
|
fetch() {
|
2021-02-01 19:27:18 +00:00
|
|
|
curl https://www.mirbsd.org/MirOS/dist/mir/mksh/mksh-R59c.tgz -o $pkgname-$pkgver.tar.gz
|
2021-01-12 11:06:46 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname
|
2021-02-01 19:27:18 +00:00
|
|
|
CPPFLAGS="-DMKSH_BINSHPOSIX" sh Build.sh -L
|
2021-01-12 11:06:46 +00:00
|
|
|
sh Build.sh
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname
|
|
|
|
install -d $pkgdir/bin
|
|
|
|
install -Dm755 ./mksh $pkgdir/bin
|
2021-02-01 19:27:18 +00:00
|
|
|
install -Dm755 ./lksh $pkgdir/bin
|
2021-01-12 11:06:46 +00:00
|
|
|
ln -sr $pkgdir/bin/mksh $pkgdir/bin/bash
|
2021-02-01 19:27:18 +00:00
|
|
|
ln -sr $pkgdir/bin/lksh $pkgdir/bin/sh
|
2021-01-12 11:06:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_doc() {
|
|
|
|
cd $pkgname
|
|
|
|
install -d $pkgdir/usr/share/man/man1
|
|
|
|
install -Dm 644 ./mksh.1 $pkgdir/usr/share/man/man1
|
2021-02-01 19:27:18 +00:00
|
|
|
install -Dm 644 ./lksh.1 $pkgdir/usr/share/man/man1
|
2021-01-12 11:06:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
curl http://www.mirbsd.org/TaC-mksh.txt
|
|
|
|
}
|