summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0799627e38dbcf454a2db95194f566b5115b90ec (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
# Maintainer: Chan Beom Park <cbpark@gmail.com>

_pkgrname=ThePEG
pkgname=thepeg
pkgver=2.0.3
pkgrel=1
pkgdesc="Toolkit for High Energy Physics Event Generation"
arch=("i686" "x86_64")
url="http://thepeg.hepforge.org"
license=('GPL2')
depends=("gsl" "lhapdf" "hepmc" "rivet" "zlib" "fastjet" "boost")
source=("http://www.hepforge.org/archive/thepeg/${_pkgrname}-$pkgver.tar.bz2")
sha256sums=('c57ba68fbfda06a0ba256e06f276f91434bf2529a13f6287c051a4cd6da44634')

build() {
  cd "${_pkgrname}-$pkgver"
  sed -i 's/isnan/std::isnan/g' Persistency/PersistentOStream.h \
      LesHouches/LesHouchesFileReader.cc \
      Utilities/UnitIO.h
  sed -i 's/isinf/std::isinf/g' Persistency/PersistentOStream.h \
      Utilities/UnitIO.h
  ./configure --prefix=/usr --with-lhapdf=/usr --with-fastjet=/usr --enable-unitchecks
  make
}

package() {
  cd "${_pkgrname}-$pkgver"
  make DESTDIR="$pkgdir" install
  install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}