summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 70718ad6ca7bfd1f9bde0f072b9be92d6e1e0e98 (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: Eric Berquist <eric DOT berquist AT gmail DOT com>

_pkgname=chemkit
pkgname="${_pkgname}-git"
pkgver=1101
pkgrel=1
pkgdesc="An open source software library for cheminformatics, molecular 
modeling and molecular visualization"
arch=("i686" "x86_64")
url="http://www.chemkit.org/"
license=("BSD")
depends=("qt4" "boost-libs" "glu")
makedepends=("git" "cmake" "eigen3" "boost")
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("git+https://github.com/kylelutz/${_pkgname}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${_pkgname}"
  git rev-list --count HEAD
}

build() {
  cd "${srcdir}/${_pkgname}"
  cmake \
      -DCMAKE_BUILD_TYPE=Release \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCHEMKIT_BUILD_DEMOS=OFF \
      -DCHEMKIT_BUILD_EXAMPLES=OFF \
      -DCHEMKIT_BUILD_TESTS=OFF \
      .
  make
}

package() {
  cd "${srcdir}/${_pkgname}"
  make DESTDIR="${pkgdir}" install
}