# Description: An arbitrary precision calculator language
# URL: https://www.gnu.org/software/bc/bc.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
# Depends on: readline

name=bc
version=1.07.1
release=1
source=(https://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.gz)

build() {
	cd $name-$version

	./configure --prefix=/usr --with-readline

	# do not regen docs
	touch doc/*.info doc/*.1 doc/Makefile

	make
	make DESTDIR=$PKG install

	rm -r $PKG/usr/share/info
}