summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel Diniz Gisoldo <gabrielgisoldi@gmail.com>2019-12-07 20:03:28 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2019-12-07 20:03:28 +0700
commitcc0ba14508704cad333f6b1777af768abbc03a87 (patch)
tree1e5871cf6cc63cd71936ffe72e159502529fb4f4
parentf02e502647cb1b9caeb4128a6bf816bf532bc9a0 (diff)
downloadslackbuilds-cc0ba14508704cad333f6b1777af768abbc03a87.tar.gz
system/omnidb-app: Updated for version 2.17.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--system/omnidb-app/omnidb-app.SlackBuild28
-rw-r--r--system/omnidb-app/omnidb-app.info6
2 files changed, 26 insertions, 8 deletions
diff --git a/system/omnidb-app/omnidb-app.SlackBuild b/system/omnidb-app/omnidb-app.SlackBuild
index 942cb031da..e2e59debad 100644
--- a/system/omnidb-app/omnidb-app.SlackBuild
+++ b/system/omnidb-app/omnidb-app.SlackBuild
@@ -27,19 +27,34 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=omnidb-app
-VERSION=${VERSION:-2.16.0}
+VERSION=${VERSION:-2.17.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-ARCH=x86_64
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i586 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DEBARCH="amd64"
-LIBDIRSUFFIX="64"
+# Doesn't support 32bit anymore.
+# if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
+# DEBARCH="i386"
+# LIBDIRSUFFIX=""
+if [ "$ARCH" = "x86_64" ]; then
+ DEBARCH="amd64"
+ LIBDIRSUFFIX="64"
+else
+ echo "$ARCH is not supported."
+ exit 1
+fi
set -e
@@ -54,7 +69,10 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Don't strip the binaries as it would cause the applications to break
+# I removed the following line from the file "omnidb-app.SlackBuild" because
+# it was breaking the app
+# find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
+# | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
sed -i -e "s#Icon=omnidb#Icon=/usr/share/icons/hicolor/128x128/apps/omnidb.png#" \
$PKG/usr/share/applications/omnidb-app.desktop
diff --git a/system/omnidb-app/omnidb-app.info b/system/omnidb-app/omnidb-app.info
index 239b009e96..35f425e091 100644
--- a/system/omnidb-app/omnidb-app.info
+++ b/system/omnidb-app/omnidb-app.info
@@ -1,10 +1,10 @@
PRGNAM="omnidb-app"
-VERSION="2.16.0"
+VERSION="2.17.0"
HOMEPAGE="https://omnidb.org/en/"
DOWNLOAD="UNSUPPORTED"
MD5SUM=""
-DOWNLOAD_x86_64="https://omnidb.org/dist/2.16.0/omnidb-app_2.16.0-debian-amd64.deb"
-MD5SUM_x86_64="1c87877f7baac2068ffad3b039910fec"
+DOWNLOAD_x86_64="https://omnidb.org/dist/2.17.0/omnidb-app_2.17.0-debian-amd64.deb"
+MD5SUM_x86_64="1e73923ad22c02d58c5a66207cc2e69d"
REQUIRES=""
MAINTAINER="Gabriel Diniz Gisoldo"
EMAIL="gabrielgisoldi@gmail.com"