# Maintainer: Frank Siegert pkgname=rivet pkgver=2.6.1 pkgrel=2 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=('28f5fbe718f3de37a7f227acb3d88027') 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 }