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

Felix Yan felixonmars at archlinux.org
Fri Nov 9 22:57:03 UTC 2018


    Date: Friday, November 9, 2018 @ 22:57:03
  Author: felixonmars
Revision: 405137

archrelease: copy trunk to community-staging-x86_64

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

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

Copied: lidia/repos/community-staging-x86_64/PKGBUILD (from rev 405135, lidia/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 22:57:03 UTC (rev 405137)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <arojas at archlinux.org>
+
+pkgname=lidia
+pkgver=2.3.0
+_patchver=2014-10-04
+pkgrel=2
+pkgdesc="A library for computational number theory"
+arch=(x86_64)
+url="https://www.math.ucdavis.edu/~latte/"
+license=(GPL)
+depends=(gmp)
+source=("https://www.math.ucdavis.edu/~latte/software/packages/lidia/current/lidia-$pkgver+latte-patches-$_patchver.tar.bz2")
+sha256sums=('d564d5263f2c01d8abe51e2971ca43a911d1edbc20f4750cdc393099d2bcd9aa')
+
+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