diff options
author | Edinaldo P. Silva <edps.mundognu@gmail.com> | 2015-09-06 06:48:38 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-09-06 06:48:38 +0700 |
commit | 6db7e9906c4012c70019030f7d8be0ef79838685 (patch) | |
tree | c4563137703e167d698b528fa97881cc3428a4ba | |
parent | 4c88dd3cea474bc16907840e4abdab3298dfd7eb (diff) |
network/vivaldi: Updated for version 1.0.264.3_1.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | network/vivaldi/doinst.sh | 29 | ||||
-rw-r--r-- | network/vivaldi/vivaldi.SlackBuild | 4 | ||||
-rw-r--r-- | network/vivaldi/vivaldi.info | 10 |
3 files changed, 29 insertions, 14 deletions
diff --git a/network/vivaldi/doinst.sh b/network/vivaldi/doinst.sh index f608d70b4ce18..ec603cf7e83af 100644 --- a/network/vivaldi/doinst.sh +++ b/network/vivaldi/doinst.sh @@ -1,27 +1,42 @@ set -e -# make links... +# make links. ln -sf /opt/vivaldi-snapshot/vivaldi-snapshot /usr/bin/vivaldi-snapshot ln -sf /opt/vivaldi-snapshot/vivaldi-snapshot /opt/vivaldi-snapshot/vivaldi -# chmod vivaldi_sandbox. +# define owner and permission. +chown root:root /opt/vivaldi-snapshot/vivaldi-sandbox chmod 4755 /opt/vivaldi-snapshot/vivaldi-sandbox # modify .desktop file. sed -i 's/TargetEnvironment/X-TargetEnvironment/g' /usr/share/applications/vivaldi-snapshot.desktop -# Add icons to the system icons -XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null || true`" +# Add icons to the system icons. +XDG_ICON_RESOURCE="`which xdg-icon-resource 2> /dev/null`" if [ ! -x "$XDG_ICON_RESOURCE" ]; then echo "Error: Could not find xdg-icon-resource" >&2 exit 1 fi for icon in "/opt/vivaldi-snapshot/product_logo_"*.png; do size="${icon##*/product_logo_}" - "$XDG_ICON_RESOURCE" install --novendor --size "${size%.png}" "$icon" "vivaldi-snapshot" + "$XDG_ICON_RESOURCE" install --size "${size%.png}" "$icon" "vivaldi-snapshot" done -# begin SlackBuild options. +# Add an entry to the system menu. +XDG_DESKTOP_MENU="`which xdg-desktop-menu 2> /dev/null`" +UPDATE_MENUS="`which update-menus 2> /dev/null`" +if [ ! -x "$XDG_DESKTOP_MENU" ]; then + echo "Error: Could not find xdg-desktop-menu" >&2 + exit 1 +fi + +"$XDG_DESKTOP_MENU" install --novendor /opt/vivaldi-snapshot/vivaldi-snapshot.desktop + +if [ -x "$UPDATE_MENUS" ]; then + update-menus +fi + +# Begin SlackBuild options. if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 fi @@ -31,7 +46,7 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1 fi fi -# end SlackBuild options. +# End SlackBuild options. # Updates defaults.list file if present. update_defaults_list() { diff --git a/network/vivaldi/vivaldi.SlackBuild b/network/vivaldi/vivaldi.SlackBuild index 7d018edec858c..565254df0ebd3 100644 --- a/network/vivaldi/vivaldi.SlackBuild +++ b/network/vivaldi/vivaldi.SlackBuild @@ -24,8 +24,8 @@ PRGNAM="vivaldi" SRCNAM="vivaldi-snapshot" -VERSION=${VERSION:-1.0.258.3} -SRCVER=${SRCVER:-1.0.258.3-1} +VERSION=${VERSION:-1.0.264.3} +SRCVER=${SRCVER:-1.0.264.3-1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} diff --git a/network/vivaldi/vivaldi.info b/network/vivaldi/vivaldi.info index f06a48f181fc8..de815b149b729 100644 --- a/network/vivaldi/vivaldi.info +++ b/network/vivaldi/vivaldi.info @@ -1,10 +1,10 @@ PRGNAM="vivaldi" -VERSION="1.0.258.3_1" +VERSION="1.0.264.3_1" HOMEPAGE="https://vivaldi.com/" -DOWNLOAD="http://repo.vivaldi.com/archive/deb/pool/main/vivaldi-snapshot_1.0.258.3-1_i386.deb" -MD5SUM="1b4139599e6c5fdcefbe1328b29b0a70" -DOWNLOAD_x86_64="http://repo.vivaldi.com/archive/deb/pool/main/vivaldi-snapshot_1.0.258.3-1_amd64.deb" -MD5SUM_x86_64="6af4ebebec5552aaf710271d7df463f0" +DOWNLOAD="http://repo.vivaldi.com/archive/deb/pool/main/vivaldi-snapshot_1.0.264.3-1_i386.deb" +MD5SUM="1a573721c1e50a8111972de82325aa60" +DOWNLOAD_x86_64="http://repo.vivaldi.com/archive/deb/pool/main/vivaldi-snapshot_1.0.264.3-1_amd64.deb" +MD5SUM_x86_64="a0c890ed2701dfcb89e8bc2f226afcc3" REQUIRES="" MAINTAINER="Edinaldo P. Silva" EMAIL="edps.mundognu@gmail.com" |