void-packages/srcpkgs/bc-gh/template

33 lines
862 B
Bash
Raw Normal View History

2019-01-28 22:26:41 +01:00
# Template file for 'bc-gh'
pkgname=bc-gh
2019-02-09 07:58:26 +01:00
version=1.1.4
2019-01-28 22:26:41 +01:00
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://github.com/gavinhoward/bc"
distfiles="${homepage}/releases/download/${version}/bc-${version}.tar.xz"
2019-02-09 07:58:26 +01:00
checksum=e54ff735d056efd403f588752dd6e07784fdabf5a0bece0753f2bb2141b9b364
2019-01-28 22:26:41 +01:00
alternatives="
bc:bc:/usr/bin/bc-gh
dc:dc:/usr/bin/dc-gh"
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 test
}
do_install() {
# Note that make install is used because of a symlink.
make install
vman manuals/bc.1
vman manuals/dc.1
vlicense LICENSE.md
}