updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / autodock-vina / PKGBUILD
blob745286f0d0e4f691202b6f8ccd8ec3fa1b015254
1 # Maintainer: Michael Schubert <mschu.dev at gmail>
3 pkgname=autodock-vina
4 pkgver=1.1.2
5 _pkgver=1_1_2
6 pkgrel=1
7 arch=('i686' 'x86_64')
8 license=('Apache 2.0')
9 pkgdesc="A tool for drug discovery, molecular docking and virtual screening"
10 url="http://vina.scripps.edu/"
11 depends=('boost')
12 source=("http://vina.scripps.edu/download/autodock_vina_$_pkgver.tgz")
13 md5sums=('b467b71ee77dd155b65b1c5364e4220f')
15 build() {
16   # adapt code to new boost version
17   cd "$srcdir/autodock_vina_$_pkgver"
18   find src -name "*.cpp" | xargs sed -i \
19     "s/.native_file_string()/.string()/g;s/, boost::filesystem::native//"
20    
21   # edit makefile and build
22   cd "build/linux/release"
23   sed -i "s:/local::g" Makefile
24   make || return 1
26   # copy binaries
27   install -Dm755 vina "$pkgdir/usr/bin/vina"
28   install -Dm755 vina_split "$pkgdir/usr/bin/vina_split"