aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--office/JabRef/JabRef.SlackBuild21
-rw-r--r--office/JabRef/JabRef.info6
2 files changed, 20 insertions, 7 deletions
diff --git a/office/JabRef/JabRef.SlackBuild b/office/JabRef/JabRef.SlackBuild
index 9cc0d6049ab0..20c01421489f 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
diff --git a/office/JabRef/JabRef.info b/office/JabRef/JabRef.info
index 2beeaf573f70..09012e1017e5 100644
--- a/office/JabRef/JabRef.info
+++ b/office/JabRef/JabRef.info
@@ -1,10 +1,10 @@
PRGNAM="JabRef"
-VERSION="5.5"
+VERSION="5.6"
HOMEPAGE="https://jabref.org"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://github.com/JabRef/jabref/releases/download/v5.5/jabref_5.5-1_amd64.deb"
-MD5SUM_x86_64="5e0dc5f86db4aa5d5a20faf29502d87e"
+DOWNLOAD_x86_64="https://github.com/JabRef/jabref/releases/download/v5.6/jabref_5.6-1_amd64.deb"
+MD5SUM_x86_64="ead8fd67b818b1db6bd9b6e0464c85ce"
REQUIRES=""
MAINTAINER="David O'Shaughnessy"
EMAIL="dev@osh.id.au"