get-scripts 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 2cb082503ef7
children 3b8bec0643e3
files plop vivaldi
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/plop	Thu Jul 14 15:32:56 2016 +0200
     1.3 @@ -0,0 +1,14 @@
     1.4 +WEB_SITE="https://www.plop.at/en/bootmanager/index.html"
     1.5 +SHORT_DESC="USB boot loader."
     1.6 +# end of get.list data
     1.7 +
     1.8 +WGET_URL="$(wget -O - https://www.plop.at/en/bootmanager/download.html | \
     1.9 +	    sed '/plpbt/!d/href/!d;s/.*href="*\([^ "]*\).*/\1/;q')"
    1.10 +TARBALL="$(basename $WGET_URL)"
    1.11 +VERSION="$(echo $TARBALL | sed 's/.*-\([0-9\.]*\)*.zip/\1/')"
    1.12 +wget $WGET_URL
    1.13 +[ -f $TARBALL ] || abort_package
    1.14 +unzip $TARBALL
    1.15 +[ -s plpbt*/plpbt.bin ] &&
    1.16 +mkdir -p $PACKAGE-$VERSION/fs/usr/share/boot &&
    1.17 +cp plpbt*/plpbt.bin $PACKAGE-$VERSION/fs/usr/share/boot
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/vivaldi	Thu Jul 14 15:32:56 2016 +0200
     2.3 @@ -0,0 +1,23 @@
     2.4 +SHORT_DESC="An advanced browser made with the power user in mind"
     2.5 +WEB_SITE="https://vivaldi.com/"
     2.6 +# end of get.list data
     2.7 +
     2.8 +DEPENDS="gtk+ bash libcups libexif GConf"
     2.9 +URL='https://vivaldi.com/download'
    2.10 +WGET_URL=$(busybox wget -O - "$URL" | sed '/32bit RPM/!d;s|.*href="\([^"]*\).*|\1|')
    2.11 +TARBALL="$(basename $WGET_URL)"
    2.12 +
    2.13 +wget -O $TARBALL $WGET_URL
    2.14 +[ -s $TARBALL ] || abort_package
    2.15 +VERSION="$(echo $TARBALL | sed 's|[^0-9]*\(.*\)\.i386.*|\1|')"
    2.16 +
    2.17 +# Extract package
    2.18 +rpm2cpio $TARBALL | cpio -dium
    2.19 +
    2.20 +# Add icons
    2.21 +for size in 16 22 24 32 48 64 128 256; do
    2.22 +	mkdir -p "usr/share/icons/hicolor/${size}x$size/apps"
    2.23 +	ln -s /opt/vivaldi/product_logo_$size.png "usr/share/icons/hicolor/${size}x$size/apps/vivaldi.png"
    2.24 +done
    2.25 +mkdir -p $PACKAGE-$VERSION/fs
    2.26 +mv opt usr $PACKAGE-$VERSION/fs