summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 879293ccf0346da66f284bd4eae0f3a5d42db6b4 (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
# Maintainer: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=dseams-git
pkgver=1.0.0.r14.g333cc82
pkgrel=1
pkgdesc="Deferred Structural Elucidation Analysis for Molecular Simulations"
arch=('x86_64')
url='https://dseams.info'
license=('GPL3')
provides=("${pkgname%-git}")
depends=('fmt'
         'yaml-cpp'
         'lua'
         'gsl')
makedepends=('boost'
             'blas'
             'editline'
             'lapack'
             'rang'
             'catch2')
source=("dseams::git+https://github.com/d-SEAMS/seams-core")
sha256sums=('SKIP')

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

prepare() {
  cd "${srcdir}/seams-core"
  if [[ -d build ]]; then
    rm -rf build
  fi
  mkdir build
  cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
}

build() {
  cd "${srcdir}/seams-core/build"
  make
}

package() {
  cd "${srcdir}/seams-core/build"
  make DESTDIR=${pkgdir} install
}