aboutsummaryrefslogtreecommitdiff
path: root/office
diff options
context:
space:
mode:
authorDavid O'Shaughnessy <dev@osh.id.au>2022-04-26 04:46:29 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-04-30 13:51:51 +0700
commitf912b0787b60e61daee40a91da94ffdd19e8aac9 (patch)
tree668cb03441f1f675ddb47350886d1c292c4b8943 /office
parent515177bbfaf9d1eb03f011a6f3a5c22920f12c7f (diff)
office/JabRef: Updated for version 5.6.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office')
-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 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
diff --git a/office/JabRef/JabRef.info b/office/JabRef/JabRef.info
index 2beeaf573f709..09012e1017e5b 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"