aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6d2898ce9264c9591f4cc3e72cf1ffffc76ffbb3 (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
# Maintainer: JP-Ellis <josh@jpellis.me>

pkgname=madgraph-madanalysis
pkgver=1.1.8
pkgrel=20160521
pkgdesc="Parton showering, hadronization and detector simulation."
url="http://madgraph.hep.uiuc.edu/"
arch=('i686' 'x86_64')
license=('MIT')
depends=('madgraph' 'tcsh' 'perl')
optdepends=('topdrawer')
makedepends=('gcc-fortran')
source=("http://madgraph.hep.uiuc.edu/Downloads/MadAnalysis_V${pkgver}.tar.gz")
sha256sums=('bdf26c4605927007b08f41eae12f218e2053297cfda518eb0e865af289e54ffc')

build () {
    cd "${srcdir}/MadAnalysis"
    make
    make clean
}

package() {
    install -Dm755 "${srcdir}/MadAnalysis/combine-pl" "${pkgdir}/usr/bin/combine-pl"
    rm "${srcdir}/MadAnalysis/combine-pl"
    install -Dm755 "${srcdir}/MadAnalysis/epstosmth" "${pkgdir}/usr/bin/epstosmth"
    rm "${srcdir}/MadAnalysis/epstosmth"
    install -Dm755 "${srcdir}/MadAnalysis/plot_events" "${pkgdir}/usr/bin/plot_events"
    rm "${srcdir}/MadAnalysis/plot_events"

    mkdir -p "${pkgdir}/usr/share/madgraph/MadAnalysis"
    cp -a "${srcdir}/MadAnalysis/." "${pkgdir}/usr/share/madgraph/MadAnalysis"

    find "${pkgdir}/usr/share/" -type f -executable -print0 | xargs -0 chmod -x
}

# Local Variables:
# mode: sh
# End: