void-packages/srcpkgs/mksh/template
2015-10-31 07:39:26 -07:00

34 lines
760 B
Bash

# Template file for 'mksh'
pkgname=mksh
version=R51
revision=2
wrksrc=mksh
build_pie=yes
register_shell="/bin/mksh"
short_desc="The MirBSD Korn Shell"
maintainer="Ypnose <linuxienATlegtuxDOTorg>"
homepage="https://www.mirbsd.org/mksh.htm"
license="MirOS"
distfiles="https://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-${version}.tgz"
checksum="9feeaa5ff33d8199c0123675dec29785943ffc67152d58d431802bc20765dadf"
alternatives="
sh:sh:/usr/bin/mksh
sh:sh.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
}