summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d2c23e926ea69250eb121cb96421a5a77d01881 (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Maintainer: Raketenjoint <rak.joint@mailbox.org>
pkgname=espressomd-git
pkgver=3.4.dev.r13633.ff32b09e5
pkgrel=1
pkgdesc="ESPResSo is a software package for performing and analyzing Molecular Dynamics simulations."
arch=('x86_64')
url="http://espressomd.org/wordpress/"
license=('GPL')
groups=()
depends=('python>=3'
         'python-numpy'
         'python-opengl'
         'python-sphinx>=1.6.6'
         'python-sphinx<2.1.0'
         'python-sphinxcontrib-bibtex>=0.3.5'
         'python-mdanalysis>=0.16')
optdepends=('cuda: Build with NVIDIA GPU support'
            'hdf5: File format to store scientific data'
            'hdf5-openmpi: File format to store scientific data (openmpi version)')
makedepends=('git'
             'gcc>=5'
             'boost>=1.67'
             'cmake>=3.4'
             'fftw>=3'
             'openmpi>=1.2')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=("${pkgname%-git}::git+https://github.com/espressomd/espresso.git")
noextract=()
md5sums=('SKIP')


pkgver() {
    cd "$srcdir/${pkgname%-git}"
    printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

prepare() {
    cd "$srcdir/${pkgname%-git}"
}

build() {
    cd "$srcdir/${pkgname%-git}"
    cmake -DCMAKE_INSTALL_PREFIX=/usr .
    # Use gcc8 to allow the installation to cuda users
    make CXX=g++-8 CC=gcc-8 CPP=g++-8
}

check() {
    cd "$srcdir/${pkgname%-git}"
    make -k check
}

package() {
    cd "$srcdir/${pkgname%-git}"
    make DESTDIR="$pkgdir/" install
}