# Template file for 'aribas'
pkgname=aribas
version=1.65b
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="http://www.mathematik.uni-muenchen.de/~forster/sw/aribas.html"
distfiles="http://www.mathematik.uni-muenchen.de/~forster/sw/UNIX_LINUX/aribas${version//./}.zip"
checksum=0a302f108d2f90517121a4f4cb6f1bc53031749d2d23b6a3598a33c57c534ed4

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
}
