From 1ddc2affe9d865c427ee8d4c32a966f2f004ef39 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 11 Sep 2016 16:05:47 +0200 Subject: [PATCH] ksh: add alternatives. --- srcpkgs/ksh/template | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/srcpkgs/ksh/template b/srcpkgs/ksh/template index 6456080426..575040568b 100644 --- a/srcpkgs/ksh/template +++ b/srcpkgs/ksh/template @@ -1,7 +1,7 @@ # Template file for 'ksh' pkgname=ksh version=2012.08.01 -revision=4 +revision=5 _debpkgver=93u+20120801 wrksrc=${pkgname}-${_debpkgver} register_shell="/bin/ksh" @@ -13,6 +13,11 @@ distfiles="${DEBIAN_SITE}/main/k/ksh/ksh_${_debpkgver}.orig.tar.gz" checksum=052d598df7ed3cbd0fdf458b796262b0b59f4cd3305d970be1cc2287408dbfc9 nocross=yes +alternatives=" + ksh:ksh:/usr/bin/ksh93 + ksh:ksh.1:/usr/share/man/man1/ksh93.1 +" + build_options="static" case "$XBPS_TARGET_MACHINE" in @@ -48,11 +53,10 @@ do_build() { do_install() { cd arch/*/ - vbin bin/ksh - ln -s ksh ${DESTDIR}/usr/bin/ksh93 + vbin bin/ksh ksh93 vbin bin/shcomp vmkdir usr/share/ksh vcopy fun usr/share/ksh/functions - vman man/man1/sh.1 ksh.1 + vman man/man1/sh.1 ksh93.1 vlicense ${FILESDIR}/LICENSE }