void-packages/srcpkgs/mksh/template

37 lines
812 B
Bash

# Template file for 'mksh'
pkgname=mksh
version=R54
revision=1
wrksrc=mksh
register_shell="/bin/mksh"
short_desc="The MirBSD Korn Shell"
maintainer='Andrea Brancaleoni <miwaxe@gmail.com>'
homepage="https://www.mirbsd.org/mksh.htm"
license="MirOS"
distfiles="https://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-${version}.tgz"
checksum=8bce3837c386684aa7780f085f1a4dbd5e3e26fb5c528ee0d41ae29af7f39013
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_install() {
vbin mksh
vman mksh.1
vinstall dot.mkshrc 644 etc/skel .mkshrc
vlicense ${FILESDIR}/TaC-mksh.txt
}