summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 15166730c101235afaedf68ad1830aa59941a587 (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
# Maintainer: Kherim Willems <kherimwillems @ gmail dot com>

_pkgname=namd-multicore-cuda
pkgname=$_pkgname-bin
pkgver=3.0.1
pkgrel=1
pkgdesc="Parallel molecular dynamics code designed for high-performance simulation of large biomolecular systems."
arch=("x86_64")
url="http://www.ks.uiuc.edu/Research/namd/"
license=("custom")
depends=("bash")
optdepends=("python: Running additional library scripts.")
provides=("$_pkgname" "namd")
conflicts=("$_pkgname" "$_pkgname-bin" "namd")
# You MUST download the package from the NAMD url and put it in the PKGBUILD folder!
# Current download should be:
# Linux-x86_64-multicore-CUDA (NVIDIA CUDA acceleration)
source=("local://NAMD_${pkgver}_Linux-$arch-multicore-CUDA.tar.gz")
md5sums=('c47d7aab89361f2fd6cf9328d2af9c81')

package() {
  cd $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA

  # License file
  install -Dm644 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/license.txt ${pkgdir}/usr/share/licenses/$pkgname/LICENSE

  # Executable files
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/charmd "${pkgdir}"/usr/bin/charmd
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/charmd_faceless "${pkgdir}"/usr/bin/charmd_faceless
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/charmrun "${pkgdir}"/usr/bin/charmrun
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/flipbinpdb "${pkgdir}"/usr/bin/flipbinpdb
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/flipdcd "${pkgdir}"/usr/bin/flipdcd
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/namd3 "${pkgdir}"/usr/bin/namd3
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/psfgen "${pkgdir}"/usr/bin/psfgen
  install -Dm 755 $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/sortreplicas "${pkgdir}"/usr/bin/sortreplicas

  # Other modules and scripts
  cp -Rf --preserve=mode $srcdir/NAMD_${pkgver}_Linux-$arch-multicore-CUDA/lib "${pkgdir}"/usr/share/${_pkgname}
}