get-scripts annotate speedtouch-firmware @ rev 80

libreoffice: fix menu entries (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 09 11:40:00 2019 +0200 (2019-06-09)
parents 2cdf3e534506
children
rev   line source
pascal@34 1 SHORT_DESC="Firmware for SpeedTouch ADSL Modem."
pascal@34 2 WEB_SITE="http://www.linux-usb.org/SpeedTouch/"
pascal@34 3 # end of get.list data
pascal@9 4
pascal@9 5 VERSION="3.012"
pascal@9 6 mkdir -p $PACKAGE-$VERSION/fs/lib/firmware
pascal@9 7 TARBALL="SpeedTouch330_firmware_$(echo $VERSION | sed 's/\.//').zip"
pascal@9 8 #http://speedtouch.hysplace.co.uk/firmware.htm
pascal@29 9 #WGET_URL="http://www.speedtouch.com/download/drivers/USB/$TARBALL"
pascal@9 10 #from http://www.filewatcher.com/m/SpeedTouch330_firmware_3012.zip.769125-0.html
pascal@29 11 WGET_URL="ftp://ftp.netbsd.org/pub/pkgsrc/distfiles/$TARBALL"
pascal@29 12 wget $WGET_URL
pascal@63 13 [ $TARBALL ] || abort_package
pascal@29 14 unzip -n $(basename $WGET_URL)
pascal@9 15 wget http://www.linux-usb.org/SpeedTouch/firmware/firmware-extractor.tar.gz
pascal@9 16 tar xzf firmware-extractor.tar.gz
pascal@9 17 cd firmware-extractor/
pascal@9 18 which gcc || tazpkg get-install gcc
pascal@9 19 gcc -o firmware-extractor firmware.c
pascal@9 20 FIRMWARE="ZZZL_$VERSION"
pascal@9 21 [ "$PACKAGE" = "speedtouch-firmware" ] && FIRMWARE="KQD6_$VERSION"
pascal@9 22 cp ../$FIRMWARE mgmt.o
pascal@9 23 ./firmware-extractor mgmt.o
pascal@9 24 install -m 600 speedtch-1.bin speedtch-2.bin \
pascal@9 25 ../$PACKAGE-$VERSION/fs/lib/firmware
pascal@9 26 cd ..