bc: make bc provide alternatives for bc and dc
This commit is contained in:
parent
ba99949cdf
commit
ce867ad173
1 changed files with 10 additions and 3 deletions
|
@ -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 <xtraeme@voidlinux.org>"
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue