void-packages/srcpkgs/bc-gh/template
travankor 80237de0a5 bc-gh: fix alternatives for the man pages.
Install man pages with the suffix -gh.
2020-02-25 14:24:16 +01:00

34 lines
964 B
Bash

# Template file for 'bc-gh'
pkgname=bc-gh
version=2.5.3
revision=2
wrksrc="bc-${version}"
short_desc="Implementation of POSIX bc with GNU extensions"
maintainer="Gavin D. Howard <yzena.tech@gmail.com>"
license="BSD-2-Clause"
homepage="https://github.com/gavinhoward/bc"
distfiles="${homepage}/releases/download/${version}/bc-${version}.tar.xz"
checksum=f7cec2a1bf6be2e805dfda6955b4631ec64d3397e96ce33f5a69909ba7aaf5c5
alternatives="
bc:bc:/usr/bin/bc-gh
bc:bc.1:/usr/share/man/man1/bc-gh.1
dc:dc:/usr/bin/dc-gh
dc:dc.1:/usr/share/man/man1/dc-gh.1"
do_configure() {
PREFIX=/usr DESTDIR="${DESTDIR}" EXECSUFFIX=-gh CC="${CC}" CFLAGS="${CFLAGS}" \
HOSTCC="${CC_FOR_BUILD}" HOSTCFLAGS="${CFLAGS_FOR_BUILD}" ./configure.sh -GM
}
do_build() {
make ${makejobs}
}
do_check() {
make ${makejobs} test
}
do_install() {
# Note that make install is used because of a symlink.
make install
vman manuals/bc.1 bc-gh.1
vman manuals/dc.1 dc-gh.1
vlicense LICENSE.md
}