get-scripts view vivaldi @ rev 63
Add nanozip
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 10 14:15:08 2016 +0200 (2016-08-10) |
parents | b2d1116ebcdf |
children |
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 dest="usr/share/icons/hicolor/${size}x$size/apps"
20 mkdir -p $dest
21 ln -s /opt/vivaldi/product_logo_$size.png "$dest/vivaldi.png"
22 done
23 mkdir -p $PACKAGE-$VERSION/fs
24 mv opt usr $PACKAGE-$VERSION/fs