[arch-commits] Commit in lidia/repos (2 files)

Felix Yan felixonmars at archlinux.org
Tue Jul 7 18:15:27 UTC 2020


    Date: Tuesday, July 7, 2020 @ 18:15:27
  Author: felixonmars
Revision: 660056

archrelease: copy trunk to community-staging-x86_64

Added:
  lidia/repos/community-staging-x86_64/
  lidia/repos/community-staging-x86_64/PKGBUILD
    (from rev 660054, lidia/trunk/PKGBUILD)

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

Copied: lidia/repos/community-staging-x86_64/PKGBUILD (from rev 660054, lidia/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-07-07 18:15:27 UTC (rev 660056)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lidia
+pkgver=2.3.0
+_patchver=2019-05-02
+pkgrel=4
+pkgdesc="A library for computational number theory"
+arch=(x86_64)
+url="https://www.math.ucdavis.edu/~latte/"
+license=(GPL)
+depends=(gmp)
+source=("https://github.com/mkoeppe/LiDIA/releases/download/v$pkgver%2Blatte-patches-$_patchver/lidia-$pkgver+latte-patches-$_patchver.tar.gz")
+sha256sums=('a5a07e65fc48c9230e9669e4d968b4ede2cac234a49d0c8c93b85040d0d79c41')
+
+build() {
+  cd lidia-$pkgver+latte-patches-$_patchver
+
+  export CXXFLAGS="-DNTL_STD_CXX $CXXFLAGS"
+  ./configure --prefix=/usr --enable-shared
+  make
+}
+
+package() {
+  cd lidia-$pkgver+latte-patches-$_patchver
+  make DESTDIR="$pkgdir" install
+
+# Fix capitalization (needed by latte-integrale)
+  mv "$pkgdir"/usr/include/{lidia,LiDIA}
+}
+



More information about the arch-commits mailing list