get-scripts view vivaldi @ rev 59

Add kiwix
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 23 12:17:06 2016 +0200 (2016-07-23)
parents
children 62d94e6800db
line source
1 SHORT_DESC="An advanced browser made with the power user in mind"
2 WEB_SITE="https://vivaldi.com/"
3 # end of get.list data
5 DEPENDS="gtk+ bash libcups libexif GConf"
6 URL='https://vivaldi.com/download'
7 WGET_URL=$(busybox wget -O - "$URL" | sed '/32bit RPM/!d;s|.*href="\([^"]*\).*|\1|')
8 TARBALL="$(basename $WGET_URL)"
10 wget -O $TARBALL $WGET_URL
11 [ -s $TARBALL ] || abort_package
12 VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\.i386.*|\1|')"
14 # Extract package
15 rpm2cpio $TARBALL | cpio -dium
17 # Add icons
18 for size in 16 22 24 32 48 64 128 256; do
19 mkdir -p "usr/share/icons/hicolor/${size}x$size/apps"
20 ln -s /opt/vivaldi/product_logo_$size.png "usr/share/icons/hicolor/${size}x$size/apps/vivaldi.png"
21 done
22 mkdir -p $PACKAGE-$VERSION/fs
23 mv opt usr $PACKAGE-$VERSION/fs