updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / apbs-pdb2pqr / PKGBUILD
blob757b3f605e45fac4292a6fb6fa45dba78adf18f9
1 # Contributor: Eduardo Martins Lopes < edumlopes at gmail dot com >
3 pkgname=apbs-pdb2pqr
4 pkgver=1.2.1
5 pkgrel=b
6 pkgdesc="A software for evaluating the electrostatic properties of nanoscale biomolecular systems"
7 arch=('i686' 'x86_64')
8 url="http://g95.sourceforge.net"
9 license="GPL"
10 depends=('blas' 'lapack' 'gcc-libs' )
11 makedepends=()
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 install=
18 _pdbver="1.6"
19 if [ "$CARCH" = "i686" ]; then
21 _arch="ia32"
22 source=(http://ufpr.dl.sourceforge.net/project/apbs/apbs/apbs-$pkgver$pkgrel/apbs-$pkgver$pkgrel-ia32.tar.gz http://ufpr.dl.sourceforge.net/project/pdb2pqr/pdb2pqr/pdb2pqr-$_pdbver/pdb2pqr-$_pdbver.tar.gz)
23 md5sums=('fb30ecae83bd4a42bc36e18987ee5648' '6d265727bf794c985815cdfd1c3ea8a5')
26 if [ "$CARCH" = "x86_64" ]; then
27 _arch="amd64"
28 source=(http://ufpr.dl.sourceforge.net/project/apbs/apbs/apbs-$pkgver$pkgrel/apbs-$pkgver$pkgrel-amd64.tar.gz http://ufpr.dl.sourceforge.net/project/pdb2pqr/pdb2pqr/pdb2pqr-$_pdbver/pdb2pqr-$_pdbver.tar.gz)
29 md5sums=('4e8e6c0fc9b60212cef0d2a442d58b61' '6d265727bf794c985815cdfd1c3ea8a5')
30 fi 
32 build() {  
33   mkdir -p $pkgdir/usr
34  mkdir -p $pkgdir/var/www/html/pdb2pqr  
35 mkdir -p $pkgdir/tmp
36   cp -r $srcdir/apbs-$pkgver-$_arch/* $startdir/pkg/usr/
38   cd $srcdir/pdb2pqr-$_pdbver
39   ./configure --prefix=$startdir/pkg/usr --with-python=/usr/bin/python2.7 --localstatedir=$pkgdir
40   make -j3
41   make install
42   ln -s $pkgdir/usr $pkgdir/var/www/html/pdb2pqr