forked from alisw/alidist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
geekbench.sh
29 lines (29 loc) · 875 Bytes
/
geekbench.sh
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
package: Geekbench
version: v3.4.1
source: https://gitlab.cern.ch/ALICEPrivateExternals/Geekbench.git
---
#!/bin/bash
if [[ ${ARCHITECTURE:0:3} == osx ]]; then
echo "Geekbench is not provided for OSX via this recipe."
exit 1
fi
mkdir -p "$INSTALLROOT/bin"
rsync -av "$SOURCEDIR/Linux/" "$INSTALLROOT/bin"
# Modulefile
MODULEDIR="$INSTALLROOT/etc/modulefiles"
MODULEFILE="$MODULEDIR/$PKGNAME"
mkdir -p "$MODULEDIR"
cat > "$MODULEFILE" <<EoF
#%Module1.0
proc ModulesHelp { } {
global version
puts stderr "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
}
set version $PKGVERSION-@@PKGREVISION@$PKGHASH@@
module-whatis "ALICE Modulefile for $PKGNAME $PKGVERSION-@@PKGREVISION@$PKGHASH@@"
# Dependencies
module load BASE/1.0
# Our environment
setenv GEEKBENCH_ROOT \$::env(BASEDIR)/$PKGNAME/\$version
prepend-path PATH \$::env(GEEKBENCH_ROOT)/bin
EoF