1 # Contributor: Stunts <f.pinamartins@gmail.com>
2 pkgname=raxml-standard-git
5 pkgdesc="Randomized Axelerated Maximum Likelihood - standard version from git"
7 url="https://github.com/stamatak/standard-RAxML"
11 optdepends=('openmpi: for buildin MPI capable binary')
12 makedepends=('git' 'make')
13 conflicts=('raxml' 'raxml-mpi')
16 #Check whether the CPU supports SSE3 instruction set:
17 if grep -q pni /proc/cpuinfo
19 makefile=Makefile.SSE3
26 _gitroot=git://github.com/stamatak/standard-RAxML.git
27 _gitname=standard-RAxML
28 _builddir=$srcdir/$_gitname-build
32 msg "Connecting to github.com GIT server...."
33 if [ -d $srcdir/$_gitname ] ; then
34 pushd $_gitname && git pull origin && popd
35 msg "The local files are updated."
39 msg "GIT checkout done or server timeout"
40 msg "Starting make..."
41 rm -rf $_gitname-build
43 git clone $_gitname $_gitname-build
50 #Build MPI binary (if OpenMPI is available)
51 if [ pacman -Q openmpi |grep -v error]
53 make -f $makefile.MPI.gcc
60 #Build Pthreads binary
61 make -f $makefile.PTHREADS.gcc
66 install -d $startdir/pkg/usr/bin
67 cp $_builddir/raxmlHPC$extension $startdir/pkg/usr/bin/raxml
68 cp $_builddir/raxmlHPC-PTHREADS$extension $startdir/pkg/usr/bin/raxml-PTHREADS
71 cp $_builddir/raxmlHPC-MPI$extension $startdir/pkg/usr/bin/raxml-MPI