33 lines
874 B
Bash
33 lines
874 B
Bash
# Template file for 'bc-gh'
|
|
pkgname=bc-gh
|
|
version=2.0.0
|
|
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"
|
|
checksum=0ddfc78f6588d9c4d33334cb6862e6db96b2e499a8a650701e98de745e3f549e
|
|
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 ${makejobs} 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
|
|
}
|