blob: e013137b5c187b458c9d9ccc041ef69aed56ef06 (
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
34
35
36
37
38
39
|
# Maintainer: Frank Siegert <frank.siegert@googlemail.com>
pkgname=rivet
pkgver=2.6.2
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=('GPL3')
depends=('python' 'yoda>=1.7.1' 'fastjet' 'gsl' 'hepmc')
optdepends=('texlive-core: Plotting functionality'
'ghostscript: PDF plot output'
'imagemagick: PNG plot output'
'python2: For Python2 module in addition to Python3')
makedepends=('cython')
source=(http://www.hepforge.org/archive/rivet/Rivet-$pkgver.tar.gz)
md5sums=('2f3c5ef45bb858b2fc14e91a3d0cb25a')
build() {
cd "$srcdir/Rivet-$pkgver"
## need to rebuild Python extension code with up-to-date Cython for Python 3.7
## will eventually be fixed upstream
touch pyext/rivet/*.pyx
./configure --prefix=/usr
make
}
package() {
cd "$srcdir/Rivet-$pkgver"
make DESTDIR="$pkgdir/" install
# If python2 is present, also build a library for it
if [ -x /usr/bin/python2 ]; then
PYTHON=/usr/bin/python2 ./configure --prefix=/usr
make DESTDIR="$pkgdir/" install
fi
mkdir -p $pkgdir/etc/bash_completion.d
mv $pkgdir/usr/share/Rivet/rivet-completion $pkgdir/etc/bash_completion.d
}
|