2017-02-24 00:21:25 +08:00
pkgname = openbabel
2017-03-23 12:36:15 +08:00
pkgver = 2.4.1
2017-02-24 00:21:25 +08:00
pkgrel = 1
pkgdesc = "Open, collaborative project allowing anyone to search, convert, analyze, or store data from molecular modeling, chemistry, solid-state materials, biochemistry, or related areas"
2017-03-23 12:36:15 +08:00
arch = ( 'x86_64' )
url = "http://openbabel.org/wiki/Main_Page"
2017-02-24 00:21:25 +08:00
license = ( 'GPL' )
2017-03-23 12:36:15 +08:00
depends = ( 'gcc-libs' 'libxml2' 'libsm' )
makedepends = ( 'cmake' 'eigen3' 'boost' 'python3' )
2017-02-24 00:21:25 +08:00
options = ( '!libtool' )
source = ( " http://downloads.sourceforge.net/ $pkgname / $pkgname - $pkgver .tar.gz " )
2017-03-23 12:36:15 +08:00
md5sums = ( 'd9defcd7830b0592fece4fe54a137b99' )
2017-02-24 00:21:25 +08:00
build( ) {
cd " ${ srcdir } "
mkdir build
cd build
cmake ../${ pkgname } -${ pkgver } \
-DCMAKE_BUILD_TYPE= Release \
2017-03-23 12:36:15 +08:00
-DCMAKE_INSTALL_PREFIX= /usr \
-DPYTHON_BINDINGS= ON
2017-02-24 00:21:25 +08:00
make
}
package( ) {
cd " ${ srcdir } /build "
make DESTDIR = " ${ pkgdir } " install
}