# Template file for 'ksh' pkgname=ksh reverts="2020.0.0_1" version=1.0.2 revision=1 wrksrc="ksh-${version}" short_desc="AT&T's Korn shell (community branch ksh93u+m)" maintainer="Leah Neukirchen " license="EPL-1.0" homepage="https://github.com/ksh93/ksh" distfiles="https://github.com/ksh93/ksh/archive/v${version}.tar.gz" checksum=e62616caab07b2d090e9ad5e17f058d4b8b8f12b48f44017d9e5d6550dfd5c14 nocross=yes register_shell="/bin/ksh" 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 do_build() { bin/package make CCFLAGS="$CFLAGS" NPROC="$XBPS_MAKEJOBS" } do_check() { # run inside own pty script -qfc bin/shtests /dev/null } do_install() { vlicense LICENSE.md LICENSE cd arch/*/ vbin bin/ksh ksh93 vbin bin/shcomp vmkdir usr/share/ksh vcopy fun usr/share/ksh/functions vman man/man1/sh.1 ksh93.1 }