# Template file for 'aribas'
pkgname=aribas
version=1.65c
revision=1
build_wrksrc=src
build_style=gnu-makefile
short_desc="Multiprecision Arithmetic Interpreter"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="GPL-2.0-or-later"
homepage="https://www.mathematik.uni-muenchen.de/~forster/sw/aribas.html"
distfiles="https://www.mathematik.uni-muenchen.de/~forster/sw/UNIX_LINUX/aribas${version//./}.tgz"
checksum=67ef87d0afe48ef8cb1f1e88be67a010eb5aea31707153007cbd906bb122f31b

CFLAGS='-DUNiX -DPROTO -DMEM=16 -DINTSIZE=64'

post_configure() {
	sed -i '/CC.*-o/s/$/ $(LDFLAGS)/' Makefile
}

do_install() {
	vbin aribas
	vdoc aribas.hlp
	vman ../doc/aribas.1
	vdoc ../doc/aridoc.txt
	vdoc ../doc/aritut.txt
	vinstall ../EL/aribas.el 0644 usr/share/emacs/site-lisp
	for f in ../examples/*; do
		vsconf $f
	done
}
