get-scripts view ueagle-firmware @ rev 26

Add apk-studio
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Nov 19 13:55:21 2014 +0100 (2014-11-19)
parents 8b66f6a75a05
children 6ca05e6839e1
line source
1 DEPENDS=""
3 wget_ueagle()
4 {
5 while read url ; do
6 WGET_URL=$url/$1
7 wget $WGET_URL
8 [ -s $1 ] || continue
9 tar xzf $1
10 return
11 done
12 abort_package "Could not download $1. Exiting."
13 }
15 mkdir -p $PACKAGE-$VERSION/fs/lib/firmware
16 VERSION="1.1"
17 TARBALL="ueagle-data-$VERSION.tar.gz"
18 SHORT_DESC="Firmware for Fast800 USB ADSL Modem."
19 SOURCE="ueagle-data"
20 WEB_SITE="http://eagle-usb.org/"
21 wget_ueagle ueagle4-data-1.0.tar.gz <<EOT
22 ftp://ftp.by.debian.org/pub/gentoo-distfiles/distfiles
23 http://pkgs.fedoraproject.org/repo/pkgs/ueagle-atm4-firmware/ueagle4-data-1.0.tar.gz/7b6b8b1dfe5faaab407c8e52638fa72b
24 ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles
25 ftp://84.39.110.99/gentoo/distfiles
26 EOT
27 wget_ueagle $TARBALL <<EOT
28 http://castet.matthieu.free.fr/eagle/non-free
29 ftp://ftp.coolmax.one.pl/pub/linux/repository/pkg/linux-atm/Internet
30 http://eagle-usb.org/ueagle-atm/non-free
31 EOT
32 mkdir -p $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm
33 cp -a ueagle-*/*.fw ueagle-*/*.bin ueagle4*/*.fw ueagle4*/*.bin* \
34 $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm
35 chown root.root $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/*
36 ln $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin.v2 \
37 $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin || true
38 set +e