get-scripts annotate vivaldi @ rev 61

kiwix: set version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jul 28 21:50:41 2016 +0200 (2016-07-28)
parents
children 62d94e6800db
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@58 19 mkdir -p "usr/share/icons/hicolor/${size}x$size/apps"
pascal@58 20 ln -s /opt/vivaldi/product_logo_$size.png "usr/share/icons/hicolor/${size}x$size/apps/vivaldi.png"
pascal@58 21 done
pascal@58 22 mkdir -p $PACKAGE-$VERSION/fs
pascal@58 23 mv opt usr $PACKAGE-$VERSION/fs