summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3a8b5fc4a48b63767955599be4d29b763f29c5a1 (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.23.01
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=('aa357f6237dd66364372b89b0c6c061661390435652262dc5457730dd88b4524')
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
}