2014-07-18 15:50:02 +00:00
|
|
|
# Template file for 'ksh'
|
|
|
|
pkgname=ksh
|
|
|
|
version=2012.08.01
|
|
|
|
_debpkgver=93u+20120801
|
2014-08-21 16:07:02 +00:00
|
|
|
revision=2
|
2014-07-18 15:50:02 +00:00
|
|
|
wrksrc=${pkgname}-${_debpkgver}
|
|
|
|
register_shell="/bin/ksh"
|
|
|
|
short_desc="AT&T's Korn shell (ksh93)"
|
|
|
|
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
|
|
|
|
license="custom"
|
|
|
|
homepage="http://www.kornshell.com/"
|
|
|
|
distfiles="${DEBIAN_SITE}/main/k/ksh/ksh_${_debpkgver}.orig.tar.gz"
|
|
|
|
checksum=052d598df7ed3cbd0fdf458b796262b0b59f4cd3305d970be1cc2287408dbfc9
|
|
|
|
|
|
|
|
build_options="static"
|
|
|
|
|
|
|
|
do_build() {
|
|
|
|
if [ "$build_option_static" ]; then
|
|
|
|
LDFLAGS+=" -static"
|
|
|
|
fi
|
|
|
|
SHELL=/bin/sh bin/package make CC="/usr/bin/${CC}" LDFLAGS="${LDFLAGS}" CFLAGS="${CFLAGS}"
|
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-08-21 16:07:02 +00:00
|
|
|
cd arch/*/
|
2014-07-18 15:50:02 +00:00
|
|
|
vbin bin/ksh
|
|
|
|
ln -s ksh ${DESTDIR}/usr/bin/ksh93
|
|
|
|
vbin bin/shcomp
|
|
|
|
vmkdir usr/share/ksh
|
|
|
|
vcopy fun usr/share/ksh/functions
|
|
|
|
vman man/man1/sh.1 ksh.1
|
|
|
|
vlicense ${FILESDIR}/LICENSE
|
|
|
|
}
|