From ce867ad173476f727d125acaa87456f89f340266 Mon Sep 17 00:00:00 2001 From: Gavin Howard Date: Thu, 31 Jan 2019 08:35:20 -0700 Subject: [PATCH] bc: make bc provide alternatives for bc and dc --- srcpkgs/bc/template | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/srcpkgs/bc/template b/srcpkgs/bc/template index 41b6e157c25..be5894b4ae9 100644 --- a/srcpkgs/bc/template +++ b/srcpkgs/bc/template @@ -1,17 +1,20 @@ # Template file for 'bc' pkgname=bc version=1.07.1 -revision=3 +revision=4 build_style=gnu-configure configure_args="--with-readline" hostmakedepends="ed flex" makedepends="readline-devel" -short_desc="An arbitrary precision numeric processing language" +short_desc="Arbitrary precision numeric processing language" maintainer="Juan RP " +license="GPL-3.0-or-later" homepage="http://www.gnu.org/software/${pkgname}/" -license="GPL-3" distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz" checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a +alternatives=" + bc:bc:/usr/bin/gnu-bc + dc:dc:/usr/bin/gnu-dc" disable_parallel_build=yes if [ "$CROSS_BUILD" ]; then @@ -44,3 +47,7 @@ do_check() { echo "TESTS PASSED" fi } +post_install() { + mv ${DESTDIR}/usr/bin/{,gnu-}bc + mv ${DESTDIR}/usr/bin/{,gnu-}dc +}