0f579b40ce
Closes: #26018 [via git-merge-pr]
50 lines
1 KiB
Bash
50 lines
1 KiB
Bash
# Template file for 'mksh'
|
|
pkgname=mksh
|
|
version=R59c
|
|
revision=1
|
|
wrksrc=mksh
|
|
checkdepends="perl ed"
|
|
short_desc="MirBSD Korn Shell"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="MirOS"
|
|
homepage="https://www.mirbsd.org/mksh.htm"
|
|
changelog="https://www.mirbsd.org/mksh.htm#clog"
|
|
distfiles="https://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-${version}.tgz"
|
|
checksum=77ae1665a337f1c48c61d6b961db3e52119b38e58884d1c89684af31f87bc506
|
|
|
|
register_shell="/bin/mksh"
|
|
alternatives="
|
|
sh:sh:/usr/bin/lksh
|
|
sh:sh.1:/usr/share/man/man1/lksh.1
|
|
ksh:ksh:/usr/bin/mksh
|
|
ksh:ksh.1:/usr/share/man/man1/mksh.1"
|
|
|
|
build_options="static"
|
|
|
|
do_build() {
|
|
if [ "$build_option_static" ]; then
|
|
CFLAGS+=" -static"
|
|
LDFLAGS+=" -static"
|
|
fi
|
|
sh ./Build.sh -r
|
|
mkdir -p lksh
|
|
cd lksh
|
|
CPPFLAGS="$CPPFLAGS -DMKSH_BINSHPOSIX" sh ../Build.sh -L -r
|
|
cd ..
|
|
}
|
|
|
|
do_check() {
|
|
./test.sh
|
|
cd lksh
|
|
./test.sh
|
|
cd ..
|
|
}
|
|
|
|
do_install() {
|
|
vbin mksh
|
|
vbin lksh/lksh
|
|
vman mksh.1
|
|
vman lksh.1
|
|
vinstall dot.mkshrc 644 etc/skel .mkshrc
|
|
vlicense ${FILESDIR}/TaC-mksh.txt
|
|
}
|