get-scripts annotate plop @ rev 73

opera: update URL
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 27 14:58:46 2017 +0200 (2017-09-27)
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