bc: make bc provide alternatives for bc and dc
This commit is contained in:
parent
ba99949cdf
commit
ce867ad173
|
@ -1,17 +1,20 @@
|
||||||
# Template file for 'bc'
|
# Template file for 'bc'
|
||||||
pkgname=bc
|
pkgname=bc
|
||||||
version=1.07.1
|
version=1.07.1
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-readline"
|
configure_args="--with-readline"
|
||||||
hostmakedepends="ed flex"
|
hostmakedepends="ed flex"
|
||||||
makedepends="readline-devel"
|
makedepends="readline-devel"
|
||||||
short_desc="An arbitrary precision numeric processing language"
|
short_desc="Arbitrary precision numeric processing language"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
homepage="http://www.gnu.org/software/${pkgname}/"
|
homepage="http://www.gnu.org/software/${pkgname}/"
|
||||||
license="GPL-3"
|
|
||||||
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
distfiles="${GNU_SITE}/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||||
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
|
checksum=62adfca89b0a1c0164c2cdca59ca210c1d44c3ffc46daf9931cf4942664cb02a
|
||||||
|
alternatives="
|
||||||
|
bc:bc:/usr/bin/gnu-bc
|
||||||
|
dc:dc:/usr/bin/gnu-dc"
|
||||||
disable_parallel_build=yes
|
disable_parallel_build=yes
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
|
@ -44,3 +47,7 @@ do_check() {
|
||||||
echo "TESTS PASSED"
|
echo "TESTS PASSED"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
post_install() {
|
||||||
|
mv ${DESTDIR}/usr/bin/{,gnu-}bc
|
||||||
|
mv ${DESTDIR}/usr/bin/{,gnu-}dc
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue