-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathapfel.sh
More file actions
34 lines (31 loc) · 1.05 KB
/
apfel.sh
File metadata and controls
34 lines (31 loc) · 1.05 KB
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
package: apfel
version: 3.1.1
tag: 3.1.1
source: https://github.com/scarrazza/apfel.git
requires:
- lhapdf
build_requires:
- CMake
- alibuild-recipe-tools
env:
LD_LIBRARY_PATH: "$LD_LIBRARY_PATH:$APFEL_ROOT/lib"
prefer_system_check: |
#!/bin/bash -e
ls $APFEL_ROOT/bin > /dev/null && \
ls $APFEL_ROOT/lib > /dev/null && \
ls $APFEL_ROOT/include > /dev/null && \
true
---
#!/bin/bash -ex
cmake -S $SOURCEDIR -B . \
-DCMAKE_INSTALL_PREFIX=$INSTALLROOT \
${CMAKE_GENERATOR:+-G "$CMAKE_GENERATOR"} \
${CMAKE_BUILD_TYPE:+-DCMAKE_BUILD_TYPE=$CMAKE_BUILD_TYPE} \
-DCMAKE_INSTALL_LIBDIR=lib \
-DAPFEL_DOWNLOAD_PDFS=OFF \
-DAPFEL_ENABLE_TESTS=OFF \
-DAPFEL_ENABLE_PYTHON=OFF
cmake --build . -- ${JOBS:+-j$JOBS} install
# Modulefile
mkdir -p "$INSTALLROOT/etc/modulefiles"
alibuild-generate-module --lib > "$INSTALLROOT/etc/modulefiles/$PKGNAME"