void-packages/srcpkgs/ksh/template
2017-12-31 15:47:44 +01:00

35 lines
890 B
Bash

# Template file for 'ksh'
pkgname=ksh
version=2017.12.31
revision=1
_githash=efca325a73ddedf44848e91b11147bc97fd13638
wrksrc="ast-${_githash}"
build_style=meson
register_shell="/bin/ksh"
short_desc="AT&T's Korn shell (ksh93)"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="http://www.kornshell.com/"
distfiles="https://github.com/att/ast/archive/${_githash}.tar.gz"
checksum=47041e693b0a716fa08cb887463b4bae11db529890a82e437dc03326bf952b4d
nocross=yes
alternatives="
ksh:ksh:/usr/bin/ksh93
ksh:ksh.1:/usr/share/man/man1/ksh93.1
"
build_options="static"
if [ "$build_option_static" ]; then
LDFLAGS+=" -static"
fi
post_extract() {
sed -i -e 's/= library/= static_library/' \
-e 's/install: true/install: false/' src/lib/*/meson.build
}
post_install() {
vmkdir usr/share/ksh
vcopy src/cmd/ksh93/fun usr/share/ksh/functions
vlicense ${FILESDIR}/LICENSE
}