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
|
2014-01-01 15:10:11 +00:00
|
|
|
wrksrc=mksh
|
|
|
|
register_shell="/bin/mksh"
|
2013-08-15 22:55:26 +00:00
|
|
|
short_desc="The MirBSD Korn Shell"
|
2015-11-17 21:24:45 +00:00
|
|
|
maintainer='Juan RP <xtraeme@voidlinux.eu>'
|
2013-04-05 14:47:11 +00:00
|
|
|
homepage="https://www.mirbsd.org/mksh.htm"
|
2013-08-22 16:55:10 +00:00
|
|
|
license="MirOS"
|
2015-12-17 10:42:27 +00:00
|
|
|
#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
|
|
|
|
2015-10-31 14:39:26 +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
|
2014-09-05 17:27:45 +00:00
|
|
|
vinstall dot.mkshrc 644 etc/skel .mkshrc
|
2014-07-06 22:40:12 +00:00
|
|
|
vlicense ${FILESDIR}/TaC-mksh.txt
|
2013-04-05 14:47:11 +00:00
|
|
|
}
|