get-scripts rev 54

Add zd1201-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 23 13:31:41 2016 +0200 (2016-04-23)
parents e99c968f2150
children d7097a408abc
files FoxitReader apk-studio b43-firmware bitcoin cpp2 dropbox flash-plugin gcc2 gcc272 geogebra jad jd-gui libreoffice openoffice3 opera rpix86 speedtouch-firmware teamviewer ueagle-firmware zd1201-firmware
line diff
     1.1 --- a/FoxitReader	Tue Dec 29 20:39:36 2015 +0200
     1.2 +++ b/FoxitReader	Sat Apr 23 13:31:41 2016 +0200
     1.3 @@ -34,4 +34,3 @@
     1.4  #MAINTAINER="$(sed '/^Maintainer:/!d;s/.*: //' $PACKAGE/meta/control)"
     1.5  VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
     1.6  mv $PACKAGE $PACKAGE-$VERSION
     1.7 -set +e
     2.1 --- a/apk-studio	Tue Dec 29 20:39:36 2015 +0200
     2.2 +++ b/apk-studio	Sat Apr 23 13:31:41 2016 +0200
     2.3 @@ -23,5 +23,3 @@
     2.4  \$APKSTUDIO_DIRECTORY/\$APKSTUDIO_BINARY "\$@" -style gtk+
     2.5  EOT
     2.6  chmod +x $PACKAGE-$SOURCE/fs/usr/bin/apkstudio
     2.7 -
     2.8 -set +e
     3.1 --- a/b43-firmware	Tue Dec 29 20:39:36 2015 +0200
     3.2 +++ b/b43-firmware	Sat Apr 23 13:31:41 2016 +0200
     3.3 @@ -35,6 +35,7 @@
     3.4  rt2870usb	RaLink RT2870USB (RT2870/RT2770) WiFi adapter.
     3.5  zd1211		zd1211/zd1211rw Wireless Lan firmware.
     3.6  zd1211rw	zd1211/zd1211rw Wireless Lan firmware.
     3.7 +zd1201		ZyDAS ZD1201 Wireless Lan firmware.
     3.8  EOT
     3.9  
    3.10  case "$MODULE" in
    3.11 @@ -97,6 +98,13 @@
    3.12  	WEB_SITE="http://packages.debian.org/etch/zd1211-firmware"
    3.13  	WGET_URL="$WGET_URL/zd1211-firmware_${VERSION}_all.deb"
    3.14  	;;
    3.15 +zd1201)
    3.16 +	SHORT_DESC="zd1201 Wireless Lan firmware."
    3.17 +	WEB_SITE="http://linux-lc100020.sourceforge.net/"
    3.18 +	WGET_URL="$(wget -O - $WEB_SITE | sed '/>Latest/!d;s/.*="\([^"]*\).*/\1/')"
    3.19 +	TARBALL="$(echo "$WGET_URL" | sed 's|.*/\([^/]*\)?.*|\1|')"
    3.20 +	VERSION="$(echo "$TARBALL" | sed 's/.*-\([^-]*\)-.*/\1/')"
    3.21 +	;;
    3.22  esac
    3.23  
    3.24  case "$WGET_URL" in
    3.25 @@ -113,11 +121,11 @@
    3.26  done
    3.27  
    3.28  # Get files
    3.29 -wget $WGET_URL
    3.30 -TARBALL="$(basename $WGET_URL)"
    3.31 +TARBALL="${TARBALL:-$(basename $WGET_URL)}"
    3.32 +wget -O "$TARBALL" "$WGET_URL"
    3.33  [ -s $TARBALL ] || abort_package "Could not download $TARBALL. Exiting."
    3.34  
    3.35 -case "$WGET_URL" in
    3.36 +case "$TARBALL" in
    3.37  *rpm)	rpm2cpio < $TARBALL | cpio -id;;
    3.38  *deb)	dpkg-deb -x $TARBALL . ;;
    3.39  *bz2)	tar xjf $TARBALL
    3.40 @@ -126,7 +134,7 @@
    3.41  *zip)	unzip $TARBALL;;
    3.42  *o)	;;
    3.43  esac
    3.44 -	
    3.45 +
    3.46  # Create pseudo package
    3.47  mkdir -p $PACKAGE-$VERSION/fs/lib/firmware $PACKAGE-$VERSION/fs/usr/share/licenses
    3.48  case "$MODULE" in 
    3.49 @@ -142,6 +150,8 @@
    3.50  		  mv iwlwifi*/*LICENSE* $PACKAGE-$VERSION/fs/usr/share/licenses/intel-iwlwifi-LICENSE.txt	;;
    3.51  zd1211*)
    3.52  	mv lib/firmware/zd1211 $PACKAGE-$VERSION/fs/lib/firmware ;;
    3.53 +zd1201)
    3.54 +	mv $MODULE-$VERSION-fw/*fw $PACKAGE-$VERSION/fs/lib/firmware ;;
    3.55  esac
    3.56  
    3.57  # Creat receipt
    3.58 @@ -185,5 +195,4 @@
    3.59  }
    3.60  EOT
    3.61  
    3.62 -[ "$PWD" != "$TMP_DIR" ] && mv $PACKAGE-$VERSION $TMP_DIR
    3.63 -set +e
    3.64 +[ "$PWD" != "$tmp_dir" ] && mv $PACKAGE-$VERSION $tmp_dir || true
     4.1 --- a/bitcoin	Tue Dec 29 20:39:36 2015 +0200
     4.2 +++ b/bitcoin	Sat Apr 23 13:31:41 2016 +0200
     4.3 @@ -53,4 +53,3 @@
     4.4  Categories=Office;Finance;
     4.5  EOT
     4.6  cd ../..
     4.7 -set +e
     5.1 --- a/cpp2	Tue Dec 29 20:39:36 2015 +0200
     5.2 +++ b/cpp2	Sat Apr 23 13:31:41 2016 +0200
     5.3 @@ -27,4 +27,3 @@
     5.4  
     5.5  # Remove unwanted files
     5.6  rm -rf $PACKAGE-$VERSION/fs/usr/share
     5.7 -set +e
     6.1 --- a/dropbox	Tue Dec 29 20:39:36 2015 +0200
     6.2 +++ b/dropbox	Sat Apr 23 13:31:41 2016 +0200
     6.3 @@ -15,14 +15,14 @@
     6.4  tar xzf $TARBALL
     6.5  # extracted pkg can be removed: Save RAM
     6.6  rm -f $TARBALL
     6.7 -VERSION="$(cat $TMP_DIR/.dropbox-dist/VERSION)"
     6.8 +VERSION="$(cat $tmp_dir/.dropbox-dist/VERSION)"
     6.9  
    6.10  mkdir -p $PACKAGE-$VERSION/fs/usr/lib \
    6.11  	$PACKAGE-$VERSION/fs/usr/bin \
    6.12  	$PACKAGE-$VERSION/fs/usr/share/applications \
    6.13  	$PACKAGE-$VERSION/fs/usr/share/pixmaps 
    6.14  
    6.15 -mv $TMP_DIR/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox
    6.16 +mv $tmp_dir/.dropbox-dist $PACKAGE-$VERSION/fs/usr/lib/dropbox
    6.17  mv -f $PACKAGE-$VERSION/fs/usr/lib/dropbox/dropbox-$PLATFORM*/* \
    6.18  	$PACKAGE-$VERSION/fs/usr/lib/dropbox
    6.19  
    6.20 @@ -45,5 +45,4 @@
    6.21  cd ..
    6.22  ln $(find lib | sed '/logo\.png$/!d;q') share/pixmaps/dropbox.png
    6.23  
    6.24 -cd $TMP_DIR
    6.25 -set +e
    6.26 +cd $tmp_dir
     7.1 --- a/flash-plugin	Tue Dec 29 20:39:36 2015 +0200
     7.2 +++ b/flash-plugin	Sat Apr 23 13:31:41 2016 +0200
     7.3 @@ -61,5 +61,3 @@
     7.4  	status
     7.5  }
     7.6  EOT
     7.7 -
     7.8 -set +e
     8.1 --- a/gcc2	Tue Dec 29 20:39:36 2015 +0200
     8.2 +++ b/gcc2	Sat Apr 23 13:31:41 2016 +0200
     8.3 @@ -28,4 +28,3 @@
     8.4  
     8.5  # Remove unwanted files
     8.6  rm -rf $PACKAGE-$VERSION/fs/usr/share
     8.7 -set +e
     9.1 --- a/gcc272	Tue Dec 29 20:39:36 2015 +0200
     9.2 +++ b/gcc272	Sat Apr 23 13:31:41 2016 +0200
     9.3 @@ -27,4 +27,3 @@
     9.4  
     9.5  # Remove unwanted files
     9.6  rm -rf $PACKAGE-$VERSION/fs/usr/share
     9.7 -set +e
    10.1 --- a/geogebra	Tue Dec 29 20:39:36 2015 +0200
    10.2 +++ b/geogebra	Sat Apr 23 13:31:41 2016 +0200
    10.3 @@ -26,5 +26,3 @@
    10.4  VERSION="$(sed '/^Version:/!d;s/.*: //' $PACKAGE/meta/control)"
    10.5  TARBALL=${PACKAGE}_$VERSION.deb
    10.6  mv $PACKAGE $PACKAGE-$VERSION
    10.7 -
    10.8 -set +e
    11.1 --- a/jad	Tue Dec 29 20:39:36 2015 +0200
    11.2 +++ b/jad	Sat Apr 23 13:31:41 2016 +0200
    11.3 @@ -15,5 +15,3 @@
    11.4  chmod +x $TARBALL
    11.5  mkdir -p $PACKAGE-$VERSION/fs/usr/bin
    11.6  mv $TARBALL $PACKAGE-$VERSION/fs/usr/bin
    11.7 -
    11.8 -set +e
    12.1 --- a/jd-gui	Tue Dec 29 20:39:36 2015 +0200
    12.2 +++ b/jd-gui	Sat Apr 23 13:31:41 2016 +0200
    12.3 @@ -11,5 +11,3 @@
    12.4  VERSION="$(echo $TARBALL | sed 's/.*-\(.*\).linux.*/\1/')"
    12.5  mkdir -p $PACKAGE-$VERSION/fs/usr/bin
    12.6  mv $PACKAGE $PACKAGE-$VERSION/fs/usr/bin
    12.7 -
    12.8 -set +e
    13.1 --- a/libreoffice	Tue Dec 29 20:39:36 2015 +0200
    13.2 +++ b/libreoffice	Sat Apr 23 13:31:41 2016 +0200
    13.3 @@ -160,5 +160,4 @@
    13.4  
    13.5  EOT
    13.6  status
    13.7 -[ "$PWD" != "$TMP_DIR" ] && mv $PACKAGE-$VERSION $TMP_DIR
    13.8 -set +e
    13.9 +[ "$PWD" != "$tmp_dir" ] && mv $PACKAGE-$VERSION $tmp_dir || true
    14.1 --- a/openoffice3	Tue Dec 29 20:39:36 2015 +0200
    14.2 +++ b/openoffice3	Sat Apr 23 13:31:41 2016 +0200
    14.3 @@ -168,5 +168,4 @@
    14.4  		mv $1/fs/$file $(dirname $ROOT/$file)
    14.5  	done
    14.6  }
    14.7 -[ "$PWD" != "$TMP_DIR" ] && mv $PACKAGE-$VERSION $TMP_DIR
    14.8 -set +e
    14.9 +[ "$PWD" != "$tmp_dir" ] && mv $PACKAGE-$VERSION $tmp_dir || true
    15.1 --- a/opera	Tue Dec 29 20:39:36 2015 +0200
    15.2 +++ b/opera	Sat Apr 23 13:31:41 2016 +0200
    15.3 @@ -85,4 +85,3 @@
    15.4  done
    15.5  rm -rf $PACKAGE-$VERSION/fs/usr/share/opera/locale-full
    15.6  rm -rf $PACKAGE-$VERSION/fs/usr/share/pixmaps
    15.7 -set +e
    16.1 --- a/rpix86	Tue Dec 29 20:39:36 2015 +0200
    16.2 +++ b/rpix86	Sat Apr 23 13:31:41 2016 +0200
    16.3 @@ -14,5 +14,3 @@
    16.4  chmod +x rpix86
    16.5  mkdir -p $PACKAGE-$VERSION/fs/usr/bin
    16.6  mv rpix86 $PACKAGE-$VERSION/fs/usr/bin
    16.7 -
    16.8 -set +e
    17.1 --- a/speedtouch-firmware	Tue Dec 29 20:39:36 2015 +0200
    17.2 +++ b/speedtouch-firmware	Sat Apr 23 13:31:41 2016 +0200
    17.3 @@ -25,4 +25,3 @@
    17.4  install -m 600 speedtch-1.bin speedtch-2.bin \
    17.5  	../$PACKAGE-$VERSION/fs/lib/firmware
    17.6  cd ..
    17.7 -set +e
    18.1 --- a/teamviewer	Tue Dec 29 20:39:36 2015 +0200
    18.2 +++ b/teamviewer	Sat Apr 23 13:31:41 2016 +0200
    18.3 @@ -42,5 +42,4 @@
    18.4  
    18.5  # Web viewer (needs flash): https://go.teamviewer.com/v${VERSION%%.*}/
    18.6  
    18.7 -cd $TMP_DIR
    18.8 -set +e
    18.9 +cd $tmp_dir
    19.1 --- a/ueagle-firmware	Tue Dec 29 20:39:36 2015 +0200
    19.2 +++ b/ueagle-firmware	Sat Apr 23 13:31:41 2016 +0200
    19.3 @@ -36,4 +36,3 @@
    19.4  chown root.root $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/*
    19.5  ln $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin.v2 \
    19.6  	$PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin || true
    19.7 -set +e
    20.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
    20.2 +++ b/zd1201-firmware	Sat Apr 23 13:31:41 2016 +0200
    20.3 @@ -0,0 +1,1 @@
    20.4 +b43-firmware
    20.5 \ No newline at end of file