get-scripts annotate plop @ rev 69

palemoon: fix VERSION
author Richard Dunbar <mojo@slitaz.org>
date Fri Jun 16 02:55:30 2017 -0400 (2017-06-16)
parents
children
rev   line source
pascal@58 1 WEB_SITE="https://www.plop.at/en/bootmanager/index.html"
pascal@58 2 SHORT_DESC="USB boot loader."
pascal@58 3 # end of get.list data
pascal@58 4
pascal@58 5 WGET_URL="$(wget -O - https://www.plop.at/en/bootmanager/download.html | \
pascal@58 6 sed '/plpbt/!d/href/!d;s/.*href="*\([^ "]*\).*/\1/;q')"
pascal@58 7 TARBALL="$(basename $WGET_URL)"
pascal@58 8 VERSION="$(echo $TARBALL | sed 's/.*-\([0-9\.]*\)*.zip/\1/')"
pascal@58 9 wget $WGET_URL
pascal@58 10 [ -f $TARBALL ] || abort_package
pascal@58 11 unzip $TARBALL
pascal@58 12 [ -s plpbt*/plpbt.bin ] &&
pascal@58 13 mkdir -p $PACKAGE-$VERSION/fs/usr/share/boot &&
pascal@58 14 cp plpbt*/plpbt.bin $PACKAGE-$VERSION/fs/usr/share/boot