get-scripts annotate vivaldi @ rev 70

opera: 404, update $URL
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Tue Sep 26 17:34:12 2017 +0200 (2017-09-26)
parents b2d1116ebcdf
children
rev   line source
pascal@58 1 SHORT_DESC="An advanced browser made with the power user in mind"
pascal@58 2 WEB_SITE="https://vivaldi.com/"
pascal@58 3 # end of get.list data
pascal@58 4
pascal@58 5 DEPENDS="gtk+ bash libcups libexif GConf"
pascal@58 6 URL='https://vivaldi.com/download'
pascal@58 7 WGET_URL=$(busybox wget -O - "$URL" | sed '/32bit RPM/!d;s|.*href="\([^"]*\).*|\1|')
pascal@58 8 TARBALL="$(basename $WGET_URL)"
pascal@58 9
pascal@58 10 wget -O $TARBALL $WGET_URL
pascal@58 11 [ -s $TARBALL ] || abort_package
pascal@58 12 VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\.i386.*|\1|')"
pascal@58 13
pascal@58 14 # Extract package
pascal@58 15 rpm2cpio $TARBALL | cpio -dium
pascal@58 16
pascal@58 17 # Add icons
pascal@58 18 for size in 16 22 24 32 48 64 128 256; do
pascal@63 19 dest="usr/share/icons/hicolor/${size}x$size/apps"
pascal@63 20 mkdir -p $dest
pascal@63 21 ln -s /opt/vivaldi/product_logo_$size.png "$dest/vivaldi.png"
pascal@58 22 done
pascal@58 23 mkdir -p $PACKAGE-$VERSION/fs
pascal@58 24 mv opt usr $PACKAGE-$VERSION/fs