summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a1613757ac17a28fb7d0cc9915772bdc6783cb1a (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
# Maintainer: <max at swk-web.com>

pkgname=libminuit2
pkgver=6.24.00
pkgrel=1
pkgdesc="Stand-alone Minuit2 produced from the ROOT 6 sources with no changes."
arch=('x86_64')
url="https://github.com/GooFit/Minuit2"
license=('LGPL')
depends=()
checkdepends=()
makedepends=('cmake')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/GooFit/Minuit2/archive/v${pkgver//./-}.tar.gz")
sha256sums=('a0459d682dbe06e5af2b41827c698d1b79212ae123cc96b424e4b98e4613bad3')
validpgpkeys=()

prepare() {
    cd "${srcdir}/Minuit2-${pkgver//./-}"

    mkdir -p build
}

build() {
    cd "${srcdir}/Minuit2-${pkgver//./-}/build"

    # If you want you can enable these options, note that this can increase
    # the performance but make sure that the software you link against
    # libminuit2 is compatible with these options
    # -Dminuit2_omp:BOOL=ON
    # -Dminuit2_mpi:BOOL=ON
    cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr

    # Build the actual thing
    make -j4
}

package() {
    # package grid libraray
    cd "${srcdir}/Minuit2-${pkgver//./-}/build"
    DESTDIR="${pkgdir}" make install
}