New package: bc-gh

This commit is contained in:
Gavin Howard 2019-01-28 14:26:41 -07:00 committed by maxice8
parent bdb13f488f
commit ba99949cdf
1 changed files with 32 additions and 0 deletions

32
srcpkgs/bc-gh/template Normal file
View File

@ -0,0 +1,32 @@
# Template file for 'bc-gh'
pkgname=bc-gh
version=1.1.1
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=7e8d427c37223aa7da2dd83ef8503236834ed6c0bd0b94fcba041699e4bc125d
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
}