blob: b4c1a2fb7e3c0e225dd19a34d95c05b17a945ed5 (
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: JP-Ellis <josh@jpellis.me>
pkgname=madgraph-pythia-pgs
pkgver=2.4.5
pkgrel=3
pkgdesc="Parton showering, hadronization and detector simulation."
url="https://launchpad.net/pythia-pgs-for-mg"
arch=('i686' 'x86_64')
license=('MIT')
depends=('madgraph' 'tcsh')
source=("http://madgraph.hep.uiuc.edu/Downloads/pythia-pgs_V${pkgver}.tar.gz")
sha256sums=('96d2183d914ae5ad2af084fb90b69aca3ab10ca6adf1d915cb1d143317e387aa')
prepare() {
if [[ "$arch" -eq "i686" ]]; then
sed -i "s/MBITS=64/MBITS=32/" pythia-pgs/src/make_opts
fi
}
build () {
cd "${srcdir}/pythia-pgs"
make
find . -type f -name "*.o" | xargs rm
}
package() {
mkdir -p "${pkgdir}/opt/madgraph/pythia-pgs"
cp -a "${srcdir}/pythia-pgs/." "${pkgdir}/opt/madgraph/pythia-pgs"
}
# Local Variables:
# mode: sh
# End:
|