blob: 90a16431a78b80eebdf6c093510fab481c1be05e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
pkgname=dalton
pkgver=2018.2
_branch=2018
pkgrel=2
pkgdesc="A tool for a wide range of molecular properties at different levels of theory"
arch=("x86_64")
url="https://daltonprogram.org"
license=('LGPL2.1')
depends=('scalapack')
makedepends=('git' 'cmake' 'sed' 'awk' 'python')
conflicts=("$pkgname-git")
source=("git+https://gitlab.com/dalton/$pkgname.git#branch=release/$_branch")
sha256sums=('SKIP')
pkgver() {
cd $pkgname
cat VERSION | sed 's/Dalton*//' | awk '{print $1}'
}
prepare() {
cd $pkgname
git submodule update --init --recursive
mkdir $srcdir/$pkgname/bld
_mpi_flags=$( mpifort -show | sed 's/.*-L/-L/' )
}
build() {
cd $pkgname/bld
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr/lib \
-DCMAKE_EXE_LINKER_FLAGS="$_mpi_flags" \
-DENABLE_OPENMP=ON \
-DENABLE_MPI=ON \
-DENABLE_SCALAPACK=ON \
-DBLACS_IMPLEMENTATION=openmpi
make
}
package() {
cd $pkgname/bld
make DESTDIR=$pkgdir install
install -dm755 $pkgdir/usr/bin
ln -sf $pkgdir/usr/lib/$pkgname/$pkgname $pkgdir/usr/bin
}
|