summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 475d91e75f4785732385470ceacf3b1fab6c75ad (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
40
41
42
43
44
45
46
47
48
49
50
# Maintainer: Bastian Löher <b.loeher@gsi.de>
pkg_name=pythia
pkgmajor=6
pkgname=${pkg_name}${pkgmajor}
pkgver=4.28
pkgrel=1
pkgdesc="The Lund Monte Carlo"
arch=('x86_64')
url="http://pythia6.hepforge.org"
license=('unknown')
groups=()
makedepends=('gcc-fortran')
depends=()
provides=()
conflicts=()
replaces=()
backup=()
options=('emptydirs' 'strip' 'staticlibs' 'libtool')
install=
changelog=
source=("https://root.cern.ch/download/${pkgname}.tar.gz"
	"http://www.hepforge.org/archive/${pkgname}/${pkg_name}-${pkgmajor}.${pkgver}.f.gz")
noextract=()
md5sums=('c88014d8380a77c81556d3887dc0b739'
         'c90168f925fc6677fa56c6535be5d9c1')

# Do not compress the package for installation
# PKGEXT='.pkg.tar'
# Compress using lightweight gzip
PKGEXT='.pkg.tar.gz'

prepare() {
	cd "${pkgname}"
	rm ${pkgname}*.f
	mv ../*.f .
}

build() {
	cd "${pkgname}"
	./makePythia6.linuxx8664
}

package() {
	cd "${pkgname}"

	installdir=${pkgdir}/usr/lib
	mkdir -p ${installdir}
	cp -r libPythia6.so ${installdir}
	ln -s libPythia6.so ${installdir}/libpythia6.so
}