void-packages/srcpkgs/mksh/template

35 lines
828 B
Bash
Raw Normal View History

2013-04-05 15:19:37 +00:00
# Template file for 'mksh'
2013-04-05 14:47:11 +00:00
pkgname=mksh
2015-12-17 08:49:19 +00:00
version=R52
revision=1
wrksrc=mksh
register_shell="/bin/mksh"
2013-08-15 22:55:26 +00:00
short_desc="The MirBSD Korn Shell"
maintainer='Juan RP <xtraeme@voidlinux.eu>'
2013-04-05 14:47:11 +00:00
homepage="https://www.mirbsd.org/mksh.htm"
license="MirOS"
#distfiles="https://www.mirbsd.org/MirOS/dist/mir/${pkgname}/${pkgname}-${version}.tgz"
distfiles="http://sources.voidlinux.eu/sources/mksh-${version}/mksh-${version}.tgz"
2015-12-17 08:49:19 +00:00
checksum=45c2f5cdd2c63a6a831ffae65cea0afd021eabb983537aa21ff893ee38b3768f
2013-04-05 14:47:11 +00:00
alternatives="
sh:sh:/usr/bin/mksh
sh:sh.1:/usr/share/man/man1/mksh.1"
2015-03-10 19:18:56 +00:00
build_options="static"
2013-04-05 14:47:11 +00:00
do_build() {
2015-03-10 19:18:56 +00:00
if [ "$build_option_static" ]; then
CFLAGS+=" -static"
LDFLAGS+=" -static"
fi
2014-01-04 12:23:38 +00:00
sh ./Build.sh -r -c lto
2013-04-05 14:47:11 +00:00
}
do_install() {
2014-07-05 16:25:47 +00:00
vbin mksh
vman mksh.1
vinstall dot.mkshrc 644 etc/skel .mkshrc
vlicense ${FILESDIR}/TaC-mksh.txt
2013-04-05 14:47:11 +00:00
}