diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..da0285a31aaf --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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=('SKIP') +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 +} |