summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0725569eac7718ce93c96ca17691b246e0d0e516 (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-git
pkgver=3.1.8.r212.g72aacf9c0
pkgrel=1
pkgdesc="A particle physics package for data analysis and validation of Monte Carlo event generators -- latest build from git repo"
arch=('x86_64' 'i686')
url="http://rivet.hepforge.org"
license=('GPL3')
conflicts=('rivet')
provides=('rivet')
replaces=('rivet-hg')
depends=('python' 'yoda' 'fastjet' 'gsl' 'hepmc' 'fastjet-contrib')
optdepends=('texlive-core: Plotting functionality'
            'ghostscript: PDF plot output'
            'imagemagick: PNG plot output'
           )
makedepends=('cython')
source=('git+https://gitlab.com/hepcedar/rivet.git#branch=main')
md5sums=('SKIP')

build() {
	cd "$srcdir/rivet"
        autoreconf -i
	./configure --prefix=/usr
	make
}

package() {
	cd "$srcdir/rivet"
	make DESTDIR="$pkgdir/" install

        mkdir -p $pkgdir/etc/bash_completion.d
        mv $pkgdir/usr/share/Rivet/rivet-completion $pkgdir/etc/bash_completion.d
}

pkgver() {
	cd "$srcdir/rivet"
        git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/rivet\.//g'
}