aboutsummaryrefslogtreecommitdiff
path: root/office/JabRef/JabRef.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/JabRef/JabRef.SlackBuild')
-rw-r--r--office/JabRef/JabRef.SlackBuild21
1 files changed, 17 insertions, 4 deletions
diff --git a/office/JabRef/JabRef.SlackBuild b/office/JabRef/JabRef.SlackBuild
index 9cc0d6049ab0f..20c01421489ff 100644
--- a/office/JabRef/JabRef.SlackBuild
+++ b/office/JabRef/JabRef.SlackBuild
@@ -27,7 +27,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=JabRef
-VERSION=${VERSION:-5.5}
+VERSION=${VERSION:-5.6}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -45,8 +45,21 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-ARCH=${ARCH:-noarch}
-DEBARCH=amd64
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+# Upstream has binary support for x86_64
+if [ "$ARCH" = "x86_64" ]; then
+ DEBARCH="amd64"
+else
+ echo "Sorry, binary is available for x86_64 only."
+ exit 1
+fi
set -e
@@ -68,7 +81,7 @@ find "$PKG" -print0 | xargs -0 file | grep -e "executable" -e "shared object" |
# create a symlink for program
mkdir -p "$PKG"/usr/bin
-ln -s /opt/${PRGNAM,,}/bin/$PRGNAM "$PKG"/usr/bin/$PRGNAM
+ln -s ../../opt/${PRGNAM,,}/bin/$PRGNAM "$PKG"/usr/bin/$PRGNAM
# desktop and icon
install -D -m 0644 opt/${PRGNAM,,}/lib/${PRGNAM,,}-$PRGNAM.desktop -t "$PKG"/usr/share/applications