1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
7 pkgdesc="A small library to handle arbitrary precision floating point numbers"
9 url="https://bellard.org/libbf/"
12 source=("https://bellard.org/libbf/libbf-$_ver.tar.gz")
13 sha512sums=('3369429f6206ecf7d3ac4e664ad356eff44aab4779ca5827ec0a8c0dec392f457241e0ebe4ae1efe5e46f1e67661065d2b6b38da0a809d27986b402da44bf8e9')
17 CC="gcc -Wall $CFLAGS $LDFLAGS -DCONFIG_MPFR"
18 $CC -c -fPIC libbf.c cutils.c
19 $CC -shared -o libbf.so libbf.o cutils.o
20 $CC -o bfbench bfbench.c -L. -lbf -lm -lmpfr -lgmp
21 $CC -o tinypi tinypi.c -L. -lbf -lm -lmpfr -lgmp
26 install -Dm755 libbf.so -t "$pkgdir"/usr/lib/
27 install -Dm644 libbf.h -t "$pkgdir"/usr/include/
28 install -Dm755 tinypi bfbench -t "$pkgdir"/usr/bin/
30 # vim:set ts=2 sw=2 et: