summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0a18938a00781c559af32cde465779bea80bcd38 (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
# Maintainer: Samo Turk <samo.turk@gmail.com> 
pkgname=rdkit-git-python3
_pkgname=RDKit
gitname=rdkit
pkgver=20150928
pkgrel=1
pkgdesc="RDKit - A collection of cheminformatics and machine-learning software written in C++ and Python."
arch=("i686" "x86_64")
url="http://rdkit.org/"
license=('New BSD License')
depends=( 'bison' 'boost' 'boost-libs' 'cmake' 'flex' 'python' 'sqlite3' 'python-numpy')
makedepends=('git')
source=()
md5sums=()
provides=('rdkit')
_gitroot="https://github.com/rdkit/rdkit.git" 
_gitname="rdkit"
_gitbranch="master"

build() {
  cd ${srcdir}
  mkdir build
  cd build
  git clone $_gitroot
  cmake ../build/${gitname} \
    -DCMAKE_BUILD_TYPE=Release \
    -DRDK_INSTALL_INTREE=0 \
    -DRDK_BUILD_THREADSAFE_SSS=ON \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DPYTHON_LIBRARY=/usr/lib/python3.5/config-3.5m/libpython3.5m.so \
    -DPYTHON_INCLUDE_DIR=/usr/include/python3.5m/ \
    -DPYTHON_EXECUTABLE=/usr/bin/python
  make
}


package() {
  echo "Making package.."
  cd ${srcdir}/build
  make DESTDIR=${pkgdir} install 
}