get-scripts diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/vivaldi Thu Jul 14 15:32:56 2016 +0200 1.3 @@ -0,0 +1,23 @@ 1.4 +SHORT_DESC="An advanced browser made with the power user in mind" 1.5 +WEB_SITE="https://vivaldi.com/" 1.6 +# end of get.list data 1.7 + 1.8 +DEPENDS="gtk+ bash libcups libexif GConf" 1.9 +URL='https://vivaldi.com/download' 1.10 +WGET_URL=$(busybox wget -O - "$URL" | sed '/32bit RPM/!d;s|.*href="\([^"]*\).*|\1|') 1.11 +TARBALL="$(basename $WGET_URL)" 1.12 + 1.13 +wget -O $TARBALL $WGET_URL 1.14 +[ -s $TARBALL ] || abort_package 1.15 +VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\.i386.*|\1|')" 1.16 + 1.17 +# Extract package 1.18 +rpm2cpio $TARBALL | cpio -dium 1.19 + 1.20 +# Add icons 1.21 +for size in 16 22 24 32 48 64 128 256; do 1.22 + mkdir -p "usr/share/icons/hicolor/${size}x$size/apps" 1.23 + ln -s /opt/vivaldi/product_logo_$size.png "usr/share/icons/hicolor/${size}x$size/apps/vivaldi.png" 1.24 +done 1.25 +mkdir -p $PACKAGE-$VERSION/fs 1.26 +mv opt usr $PACKAGE-$VERSION/fs