bc: fix alternatives for the man pages.

Install man pages with the prefix gnu-.
This commit is contained in:
travankor 2020-02-22 19:44:33 -07:00 committed by Juan RP
parent 607982b15d
commit f7f7c682dc

View file

@ -1,7 +1,7 @@
# Template file for 'bc'
pkgname=bc
version=1.07.1
revision=4
revision=5
build_style=gnu-configure
configure_args="--with-readline"
hostmakedepends="ed flex texinfo"
@ -14,7 +14,9 @@ distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
alternatives="
bc:bc:/usr/bin/gnu-bc
dc:dc:/usr/bin/gnu-dc"
bc:bc.1:/usr/share/man/man1/gnu-bc.1
dc:dc:/usr/bin/gnu-dc
dc:dc.1:/usr/share/man/man1/gnu-dc.1"
disable_parallel_build=yes
if [ "$CROSS_BUILD" ]; then
@ -50,4 +52,6 @@ do_check() {
post_install() {
mv ${DESTDIR}/usr/bin/{,gnu-}bc
mv ${DESTDIR}/usr/bin/{,gnu-}dc
mv ${DESTDIR}/usr/share/man/man1/{,gnu-}bc.1
mv ${DESTDIR}/usr/share/man/man1/{,gnu-}dc.1
}