upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / libbf / trunk / PKGBUILD
blob905d9076254ff21fc4fdee0512a2e28c431003ed
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=libbf
4 pkgver=2020.01.19
5 _ver=${pkgver//./-}
6 pkgrel=1
7 pkgdesc="A small library to handle arbitrary precision floating point numbers"
8 arch=('x86_64')
9 url="https://bellard.org/libbf/"
10 license=('MIT')
11 depends=('mpfr')
12 source=("https://bellard.org/libbf/libbf-$_ver.tar.gz")
13 sha512sums=('3369429f6206ecf7d3ac4e664ad356eff44aab4779ca5827ec0a8c0dec392f457241e0ebe4ae1efe5e46f1e67661065d2b6b38da0a809d27986b402da44bf8e9')
15 build() {
16   cd $pkgname-$_ver
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
24 package() {
25   cd $pkgname-$_ver
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: