summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 887c5c2cda0d99909a14351ca43c6a0cc376f0cb (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
# 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=('GPL-3.0')
provides=("${pkgname%-git}")
depends=('gsl'
         'boost'
         'lua'
         'blas'
         'editline'
         'lapack'
         'rang'
         'yaml-cpp'
         'catch2')
makedepends=('git')
source=("git+https://github.com/d-SEAMS/seams-core")
md5sums=('SKIP')

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

prepare() {
  cd "${srcdir}/seams-core"
  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
  install -Dm644 ../LICENSE "${pkgdir}/usr/share/licenses/dseams/LICENSE"
}