dash: register 'sh' alternatives group.

This commit is contained in:
Juan RP 2015-10-31 11:20:43 +01:00
parent b9b9670d14
commit ff114bbd0d

View file

@ -1,7 +1,7 @@
# Template file for 'dash' # Template file for 'dash'
pkgname=dash pkgname=dash
version=0.5.8 version=0.5.8
revision=4 revision=5
build_pie=yes build_pie=yes
build_style=gnu-configure build_style=gnu-configure
hostmakedepends="bison" hostmakedepends="bison"
@ -13,7 +13,6 @@ license="BSD"
distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz" distfiles="http://gondor.apana.org.au/~herbert/dash/files/$pkgname-$version.tar.gz"
checksum=c6db3a237747b02d20382a761397563d813b306c020ae28ce25a1c3915fac60f checksum=c6db3a237747b02d20382a761397563d813b306c020ae28ce25a1c3915fac60f
post_install() { alternatives="
ln -s dash ${DESTDIR}/usr/bin/sh sh:/usr/bin/sh:/usr/bin/dash
ln -s dash.1 ${DESTDIR}/usr/share/man/man1/sh.1 sh:/usr/share/man/man1/sh.1:/usr/share/man/man1/dash.1"
}