|
|
@ -1,6 +1,6 @@ |
|
|
|
#!/bin/bash |
|
|
|
# Build script for Slackware |
|
|
|
# Copyright (C) 2008-2014,2016,2019 Damien Goutte-Gattat |
|
|
|
# Copyright (C) 2008-2014,2016,2019,2020 Damien Goutte-Gattat |
|
|
|
# |
|
|
|
# Redistribution and use of this script, with or without modifications, |
|
|
|
# is permitted provided that the following conditions are met: |
|
|
@ -30,7 +30,7 @@ |
|
|
|
|
|
|
|
# Source package infos |
|
|
|
NAMESRC=${NAMESRC:-pymol} |
|
|
|
VERSION=${VERSION:-2.3.0} |
|
|
|
VERSION=${VERSION:-2.4.0} |
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-open-source-$VERSION.tar.gz} |
|
|
|
WGET=${WGET:-https://github.com/schrodinger/pymol-open-source/archive/v$VERSION.tar.gz} |
|
|
|
|
|
|
@ -46,14 +46,7 @@ OUT=${OUT:-$TMP/build} |
|
|
|
PKG=${PKG:-$OUT/$NAMEPKG} |
|
|
|
CWD=$(pwd) |
|
|
|
# Get the 'site-packages' directory in the Python installation |
|
|
|
SITEPKG=$(python3 <<EOF | tail -n 1 |
|
|
|
#!/usr/bin/python3 |
|
|
|
import sys |
|
|
|
for p in sys.path: |
|
|
|
if p[-13:] == 'site-packages': |
|
|
|
print(p) |
|
|
|
EOF |
|
|
|
) |
|
|
|
SITEPKG=$(python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])') |
|
|
|
|
|
|
|
set -e # Quit if a command returns non-zero |
|
|
|
|
|
|
@ -80,7 +73,7 @@ cd $TMP |
|
|
|
echo "Building $NAMEPKG-$VERSION..." |
|
|
|
tar xf $CWD/$ARCHIVE |
|
|
|
cd $NAME |
|
|
|
python3 setup.py build install --use-msgpackc=no --root=$PKG |
|
|
|
python3 setup.py build install --use-msgpackc=no --no-vmd-plugins --root=$PKG |
|
|
|
|
|
|
|
# Install desktop file |
|
|
|
mkdir -p $PKG/usr/share/applications |
|
|
|