blob: 21e6f787c73d68f39a2f369c157406e50b4e861a (
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
|
pkgname=openmm
pkgver=8.0.0
pkgrel=1
pkgdesc="Toolkit for molecular simulation using high performance GPU code"
arch=('x86_64')
url="http://openmm.org/"
license=('MIT' 'LGPL')
depends=('fftw')
optdepends=('cuda: prrovides cuda support')
makedepends=('cmake' 'swig' 'doxygen' 'cython')
source=("https://github.com/pandegroup/openmm/archive/${pkgver}.tar.gz")
sha256sums=('dc63d7b47c8bb7b169c409cfd63d909ed0ce1ae114d37c627bf7a4231acf488e')
#export CC=gcc-10
#export CXX=g++-10
#export FC=gfortran-10
build() {
cd "${srcdir}"
mkdir -p build
cd build
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOPENMM_GENERATE_API_DOCS=ON \
../openmm-${pkgver}
make
}
check () {
msg2 "Testing openmm"
cd "${srcdir}"/build
#make test
}
package() {
cd "${srcdir}"/build
msg2 "Installing openmm"
make DESTDIR="${pkgdir}" install
install -d "${pkgdir}"/usr/share/licenses/${pkgname}
msg2 "Installing openmm python bindings"
# Fix to install python wrapper
sed -i 's:ENV{OPENMM_LIB_PATH} ":ENV{OPENMM_LIB_PATH} "$ENV{DESTDIR}:g' wrappers/python/pysetupinstall.cmake
make DESTDIR="${pkgdir}" PythonInstall
mv "${pkgdir}"/usr/licenses/*.txt "${pkgdir}"/usr/share/licenses/${pkgname}
rm -rf "${pkgdir}"/usr/{bin,docs,examples,licenses}
}
|