get-scripts view vivaldi @ rev 58

Add vivaldi & plop
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 14 15:32:56 2016 +0200 (2016-07-14)
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