41 lines
860 B
Bash
41 lines
860 B
Bash
# Template file for 'mksh'
|
|
pkgname=mksh
|
|
version=R56c
|
|
revision=1
|
|
wrksrc=mksh
|
|
checkdepends="perl ed"
|
|
register_shell="/bin/mksh"
|
|
short_desc="The MirBSD Korn Shell"
|
|
maintainer='Andrea Brancaleoni <abc@pompel.me>'
|
|
license="MirOS"
|
|
homepage="https://www.mirbsd.org/mksh.htm"
|
|
distfiles="https://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-${version}.tgz"
|
|
checksum=dd86ebc421215a7b44095dc13b056921ba81e61b9f6f4cdab08ca135d02afb77
|
|
|
|
alternatives="
|
|
sh:sh:/usr/bin/mksh
|
|
sh:sh.1:/usr/share/man/man1/mksh.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 -c lto
|
|
}
|
|
|
|
do_check() {
|
|
./test.sh
|
|
}
|
|
|
|
do_install() {
|
|
vbin mksh
|
|
vman mksh.1
|
|
vinstall dot.mkshrc 644 etc/skel .mkshrc
|
|
vlicense ${FILESDIR}/TaC-mksh.txt
|
|
}
|