31 lines
685 B
Bash
31 lines
685 B
Bash
# Template file for 'mksh'
|
|
pkgname=mksh
|
|
version=R50f
|
|
revision=1
|
|
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=74e051ce92ece9555d91505b956572f64668fc88c5ccabee742099e7f29a2bcb
|
|
|
|
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
|
|
}
|