summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3d964fe0defef10d37737b08d6709c87dd36135b (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: Dylan Delgado <dylan1496 at live dot com>

pkgname=reduze
pkgver=2.4
pkgrel=3
pkgdesc="Computer program for reducing Feynman integrals to master integrals employing a variant of Laporta's reduction algorithm."
arch=('i686' 'x86_64')
url="https://reduze.hepforge.org/"
license=('GPL3')
depends=('ginac')
makedepends=('cmake')
optdepends=('openmpi: For MPI support'
'db: For Berkeley DB support'
'fermat: For faster GCD calculations'
'doxygen: To create the docs for reduze')
source=("https://reduze.hepforge.org/download/reduze-${pkgver}.tar.gz")
sha256sums=('107d6875104f464d677410aebee6d06737c11c5ba21c2bc85e8fab7d500076f6')

build() {
cd ${srcdir}/reduze-"${pkgver}"
cmake -DCMAKE_INSTALL_PREFIX=${srcdir}/reduze-"${pkgver}" -DUSE_MPI=ON -DUSE_DATABASE=ON -DUSE_FERMAT=ON -S ${srcdir}/reduze-"${pkgver}"
make -j
make check
}

package() {
cd ${srcdir}/reduze-"${pkgver}"
make install

cd bin/
install -Dm755 reduze "${pkgdir}"/usr/bin/reduze
install -Dm755 reduze1to2 "${pkgdir}"/usr/bin/reduze1to2
cd ../share/reduze/
install -dm755 "${pkgdir}"/usr/share/reduze/
cp -r example/ "${pkgdir}"/usr/share/reduze/
cp -r tools/ "${pkgdir}"/usr/share/reduze/
cp -r tutorial/ "${pkgdir}"/usr/share/reduze/
}