summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2018-07-23 21:47:32 +0200
committerhaawda2018-07-23 21:47:32 +0200
commit916287a52cb16975260bf5ba16e0ab19f4a83cd5 (patch)
tree7d089c1aa8116955558d176608d98de10a191a89
parent672a4e6292517a3c242b2bf32aba439568d5c00f (diff)
downloadaur-916287a52cb16975260bf5ba16e0ab19f4a83cd5.tar.gz
build with gcc7
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD24
2 files changed, 15 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7fbabdde3e8..348757ed3b5 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,12 +1,14 @@
pkgbase = elemental
pkgdesc = distributed-memory dense linear algebra
pkgver = 0.87.7
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/elemental/Elemental
arch = i686
arch = x86_64
license = custom:BSD
makedepends = cmake
+ makedepends = gcc7
+ makedepends = gcc-fortran
depends = openblas-lapack
depends = parmetis
depends = libmpc
diff --git a/PKGBUILD b/PKGBUILD
index 5c2741949ab..d17c2d6959a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,10 +2,10 @@
pkgname=elemental
pkgver=0.87.7
-pkgrel=1
+pkgrel=2
url="https://github.com/elemental/Elemental"
pkgdesc="distributed-memory dense linear algebra"
-makedepends=('cmake')
+makedepends=('cmake' 'gcc7' 'gcc-fortran')
depends=('openblas-lapack' 'parmetis' 'libmpc' 'python2')
arch=('i686' 'x86_64')
license=("custom:BSD")
@@ -17,7 +17,7 @@ options=('!makeflags')
build() {
cd Elemental-$pkgver
mkdir -p build && pushd build
- cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ CXX=g++-7 cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_EL_DISABLE_PARMETIS=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_LIBDIR=/usr/lib
@@ -28,13 +28,13 @@ package() {
cd Elemental-$pkgver/build
make install DESTDIR="$pkgdir"
install -Dm644 ../LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
- find $pkgdir/usr/python/El/ -type f -exec sed '1s+python+python2+' {} \;
- install -d $pkgdir/usr/lib/python2.7/site-packages
- cp -r $pkgdir/usr/python/El/ $pkgdir/usr/lib/python2.7/site-packages
- rm -rf $pkgdir/usr/python
- install -d $pkgdir/usr/lib/cmake/modules
- cp -r $pkgdir/usr/CMake/elemental/ $pkgdir/usr/lib/cmake/modules
- rm -rf $pkgdir/usr/CMake
- cp -r $pkgdir/usr/conf $pkgdir/etc
- rm -rf $pkgdir/usr/conf
+ find "$pkgdir"/usr/python/El/ -type f -exec sed '1s+python+python2+' {} \;
+ install -d "$pkgdir"/usr/lib/python2.7/site-packages
+ cp -r "$pkgdir"/usr/python/El/ "$pkgdir"/usr/lib/python2.7/site-packages
+ rm -rf "$pkgdir"/usr/python
+ install -d "$pkgdir"/usr/lib/cmake/modules
+ cp -r "$pkgdir"/usr/CMake/elemental/ "$pkgdir"/usr/lib/cmake/modules
+ rm -rf "$pkgdir"/usr/CMake
+ cp -r "$pkgdir"/usr/conf "$pkgdir"/etc
+ rm -rf "$pkgdir"/usr/conf
}