Date: Thursday, June 7, 2018 @ 13:53:56
  Author: arojas
Revision: 341838

archrelease: copy trunk to community-staging-x86_64

Added:
  latte-integrale/repos/community-staging-x86_64/
  latte-integrale/repos/community-staging-x86_64/PKGBUILD
    (from rev 341837, latte-integrale/trunk/PKGBUILD)

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

Copied: latte-integrale/repos/community-staging-x86_64/PKGBUILD (from rev 
341837, latte-integrale/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD                           (rev 0)
+++ community-staging-x86_64/PKGBUILD   2018-06-07 13:53:56 UTC (rev 341838)
@@ -0,0 +1,30 @@
+# Maintainer: Antonio Rojas <aro...@archlinux.org>
+
+pkgname=latte-integrale
+pkgver=1.7.3
+pkgrel=6
+pkgdesc="Computer software dedicated to the problems of counting lattice 
points and integration inside convex polytopes"
+arch=(x86_64)
+url="https://www.math.ucdavis.edu/~latte/";
+license=(GPL)
+depends=(4ti2 ntl cddlib lidia)
+source=("https://www.math.ucdavis.edu/~latte/software/packages/latte_current/latte-int-$pkgver.tar.gz";)
+sha256sums=('b6777067d11a454e4dbaf5af8fb227d2b66960d79245ea967192738ad2a1e76c')
+
+build() {
+  cd latte-int-$pkgver
+
+  export CXXFLAGS="-DNTL_STD_CXX $CXXFLAGS"
+  export LDFLAGS+=" -lpthread"
+  ./configure --prefix=/usr --enable-shared --with-ntl=/usr
+  make
+}
+
+package() {
+  cd latte-int-$pkgver
+  make DESTDIR="$pkgdir" install
+
+# Fix conflicts with LLVM
+  mv "$pkgdir"/usr/bin/{count,latte-count}
+}
+

Reply via email to