[arch-commits] Commit in libbf/repos (community-x86_64 community-x86_64/PKGBUILD)

Felix Yan felixonmars at archlinux.org
Thu Jul 30 17:49:13 UTC 2020


    Date: Thursday, July 30, 2020 @ 17:49:13
  Author: felixonmars
Revision: 665929

archrelease: copy trunk to community-x86_64

Added:
  libbf/repos/community-x86_64/
  libbf/repos/community-x86_64/PKGBUILD
    (from rev 665928, libbf/trunk/PKGBUILD)

----------+
 PKGBUILD |   30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

Copied: libbf/repos/community-x86_64/PKGBUILD (from rev 665928, libbf/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2020-07-30 17:49:13 UTC (rev 665929)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=libbf
+pkgver=2020.01.19
+_ver=${pkgver//./-}
+pkgrel=1
+pkgdesc="A small library to handle arbitrary precision floating point numbers"
+arch=('x86_64')
+url="https://bellard.org/libbf/"
+license=('MIT')
+depends=('mpfr')
+source=("https://bellard.org/libbf/libbf-$_ver.tar.gz")
+sha512sums=('3369429f6206ecf7d3ac4e664ad356eff44aab4779ca5827ec0a8c0dec392f457241e0ebe4ae1efe5e46f1e67661065d2b6b38da0a809d27986b402da44bf8e9')
+
+build() {
+  cd $pkgname-$_ver
+  CC="gcc -Wall $CFLAGS $LDFLAGS -DCONFIG_MPFR"
+  $CC -c -fPIC libbf.c cutils.c
+  $CC -shared -o libbf.so libbf.o cutils.o
+  $CC -o bfbench bfbench.c -L. -lbf -lm -lmpfr -lgmp
+  $CC -o tinypi tinypi.c -L. -lbf -lm -lmpfr -lgmp
+}
+
+package() {
+  cd $pkgname-$_ver
+  install -Dm755 libbf.so -t "$pkgdir"/usr/lib/
+  install -Dm644 libbf.h -t "$pkgdir"/usr/include/
+  install -Dm755 tinypi bfbench -t "$pkgdir"/usr/bin/
+}
+# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list