updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / rdkit / PKGBUILD
blob9fd2f60d599d2302c49ffd324c4180ffedb0283b
1 # Maintainer: Giuseppe Marco Randazzo <gmrandazzo@gmail.com>
2 pkgname=rdkit
3 _pkgname=RDKit
4 pkgver=2011_09_1
5 pkgrel=1
6 pkgdesc="RDKit - A collection of cheminformatics and machine-learning software written in C++ and Python."
7 arch=("i686" "x86_64")
8 url="http://rdkit.org/"
9 license=('New BSD License')
10 depends=( 'bison' 'boost' 'boost-libs' 'cmake' 'flex' 'python2' 'sqlite3' )
11 source=(http://downloads.sourceforge.net/${pkgname}/${_pkgname}_${pkgver}.tgz)
12 md5sums=('009bb423300f6f25137175b7a842e3c8')
14 build() {
15   cd ${srcdir}
16   mkdir build
17   cd build
18   cmake ../${_pkgname}_${pkgver} \
19     -DCMAKE_BUILD_TYPE=Release \
20     -DRDK_INSTALL_INTREE=0 \
21     -DCMAKE_INSTALL_PREFIX=/usr \
22     -DPYTHON_LIBRARY=/usr/lib/python2.7/config/libpython2.7.a \
23     -DPYTHON_INCLUDE_DIR=/usr/include/python2.7/ \
24     -DPYTHON_EXECUTABLE=/usr/bin/python2
25   make
28 package() {
29   cd ${srcdir}/build
30   make DESTDIR=${pkgdir} install