void-packages/srcpkgs/bc-gh/template
2021-05-20 15:12:25 -03:00

35 lines
1 KiB
Bash

# Template file for 'bc-gh'
pkgname=bc-gh
version=4.0.2
revision=1
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://git.yzena.com/gavin/bc"
changelog="https://git.yzena.com/gavin/bc/raw/branch/master/NEWS.md"
distfiles="https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz"
checksum=b4a7046325557a44d02165874f957c3abf49e2ba4491c8275326cb7c55ef2290
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
}