updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / comphep / PKGBUILD
bloba5b152607c1cf07e9cb710cc057d85dd85c3e852
1 #Contributor: T.Cunly
2 #License:Non-profit Use License Agreement
4 pkgname=comphep
5 pkgver=4.5.1
6 pkgrel=1
7 pkgdesc="A package for evaluation of Feynman diagrams, integration over multi-particle phase space and event generation."
8 license=(NULA)
9 arch=('x86_64')
10 url="http://comphep.sinp.msu.ru"
11 depends=('lhapdf' 'root-stable')
12 install=comphep.install
13 source=("http://comphep.sinp.msu.ru/_media/download/$pkgname-$pkgver.tgz")
14 md5sums=('9b5afbe99912b2b9d9cc405aa60024b5')
16 build() {
17     INSTALLDIR=/opt/Science
19     if [ ! -d $pkgdir$INSTALLDIR ] 
20     then 
21             mkdir -p $pkgdir$INSTALLDIR 
22     fi
23     cd $pkgdir$INSTALLDIR
24     cp  $startdir/$pkgname-$pkgver.tgz ./
25     tar xvpf $pkgname-$pkgver.tgz 
26     mv $pkgname-$pkgver CompHEP 
27     rm -f $pkgname-$pkgver.tgz
28     cd $pkgdir$INSTALLDIR/CompHEP 
30     export LHAPDFPATH=/usr/lib/liblhapdf.a
31     export ROOTSYS=/usr
33     ./configure --with-gcc4 --with-lhapdf --with-libxml --optimise --with-m64 --with-root || return 1
34     make || return 1
35     make clean