38 lines
1.1 KiB
Bash
38 lines
1.1 KiB
Bash
# Template file for 'bc-gh'
|
|
pkgname=bc-gh
|
|
version=6.7.5
|
|
revision=1
|
|
short_desc="Implementation of POSIX bc with GNU extensions"
|
|
maintainer="Gavin D. Howard <gavin@gavinhoward.com>"
|
|
license="BSD-2-Clause"
|
|
homepage="https://git.gavinhoward.com/gavin/bc"
|
|
changelog="https://git.gavinhoward.com/gavin/bc/raw/branch/master/NEWS.md"
|
|
distfiles="https://github.com/gavinhoward/bc/releases/download/${version}/bc-${version}.tar.xz"
|
|
checksum=c3e02c948d51f3ca9cdb23e011050d2d3a48226c581e0749ed7cbac413ce5461
|
|
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"
|
|
|
|
# no translations in musl, because there is not a gencat binary there.
|
|
|
|
do_configure() {
|
|
PREFIX=/usr DESTDIR="${DESTDIR}" EXECSUFFIX=-gh CC="${CC}" CFLAGS="${CFLAGS}" \
|
|
HOSTCC="${CC_FOR_BUILD}" HOSTCFLAGS="${CFLAGS_FOR_BUILD}" ./configure.sh -GM \
|
|
-pGNU
|
|
}
|
|
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
|
|
}
|