blob: f52e4647db2bb796bcfae3c60d47c02078726d1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# Maintainer: Frank Siegert <frank.siegert@googlemail.com>
pkgname=rivet
pkgver=2.4.0
pkgrel=1
pkgdesc="A particle physics package for data analysis and validation of Monte Carlo event generators"
arch=('x86_64' 'i686')
url="http://rivet.hepforge.org"
license=('GPL2')
depends=('python2' 'yoda>=1.4.0' 'fastjet' 'gsl' 'hepmc')
makedepends=('cython2' 'boost' 'autoconf' 'libtool' 'automake')
source=(http://www.hepforge.org/archive/rivet/Rivet-$pkgver.tar.gz)
md5sums=('e240079596c1deb289cbb2486be3c8f2')
prepare() {
cd "$srcdir/Rivet-$pkgver"
sed -e 's/\/usr\/bin\/env python$/\/usr\/bin\/env python2/g' -i bin/* doc/* pyext/setup.py.in pyext/rivet/spiresbib.py
sed -e 's/cython /cython2 /g' -i pyext/rivet/Makefile.am
}
build() {
cd "$srcdir/Rivet-$pkgver"
export PYTHON=/usr/bin/python2
autoreconf -i
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/Rivet-$pkgver"
make DESTDIR="$pkgdir/" install
mkdir -p $pkgdir/etc/bash_completion.d
mv $pkgdir/usr/share/Rivet/rivet-completion $pkgdir/etc/bash_completion.d
}
|