aboutsummaryrefslogtreecommitdiff
path: root/academic/avogadrolibs/avogadrolibs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'academic/avogadrolibs/avogadrolibs.SlackBuild')
-rw-r--r--academic/avogadrolibs/avogadrolibs.SlackBuild16
1 files changed, 13 insertions, 3 deletions
diff --git a/academic/avogadrolibs/avogadrolibs.SlackBuild b/academic/avogadrolibs/avogadrolibs.SlackBuild
index fc45449bcad98..8ac9c170813f9 100644
--- a/academic/avogadrolibs/avogadrolibs.SlackBuild
+++ b/academic/avogadrolibs/avogadrolibs.SlackBuild
@@ -25,12 +25,13 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=avogadrolibs
-VERSION=${VERSION:-1.95.1}
+VERSION=${VERSION:-1.96.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
MVERSION=${MVERSION:-1.0.0}
CVERSION=${CVERSION:-1.0.1}
+AVERSION=${AVERSION:-1.96}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -58,6 +59,7 @@ USEMMTF="" ; [ "${MMTF:-yes}" = "no" ] && USEMMTF="-DUSE_MMTF=OFF"
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
+GENXRDPATH=$TMP/$PRGNAM-$VERSION/build/avogadro/qtplugins/plotxrd/bin
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
@@ -88,7 +90,8 @@ tar xvf $CWD/crystals-$CVERSION.tar.gz
mv molecules-$MVERSION molecules
mv crystals-$CVERSION crystals
if [ "${PYTHON}" = "yes" ]; then
- tar xvf $CWD/avogadrogenerators.tar.gz
+ tar xvf $CWD/avogenerators-$AVERSION.tar.gz
+ mv avogenerators-$AVERSION avogadrogenerators
fi
# Now we can change directory to $PRGNAM-$VERSION
@@ -104,6 +107,13 @@ find -L . \
patch -p1 < $CWD/fix_cmake-find-package.diff
mkdir -p build
+# Following steps prevent the download of the executable genXrdPattern
+# needed by the build process and include it in the source tree
+mkdir -p $GENXRDPATH
+cp $CWD/linux64-genXrdPattern $GENXRDPATH
+mv $GENXRDPATH/linux64-genXrdPattern $GENXRDPATH/genXrdPattern
+chmod 755 $GENXRDPATH/genXrdPattern
+
cd build
cmake \
-DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
@@ -129,7 +139,7 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
-cp -a *.md LICENSE $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a *.md LICENSE CITATION.cff $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
# Remove doc files installed by make install in /usr/share/doc/AvogadroLibs that are redundant