get-scripts rev 7

Add ueagle-firmware
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Feb 18 21:52:26 2014 +0000 (2014-02-18)
parents 6603ef3afcd0
children fa385ab1b8fb
files bitcoin libreoffice litecoin openoffice3 ueagle-atm-firmware ueagle-firmware
line diff
     1.1 --- a/bitcoin	Mon Feb 17 09:38:45 2014 +0000
     1.2 +++ b/bitcoin	Tue Feb 18 21:52:26 2014 +0000
     1.3 @@ -2,10 +2,17 @@
     1.4  SHORT_DESC="New digital currency for instant payments to anyone, anywhere."
     1.5  MAINTAINER="somebody@$PACKAGE.org"
     1.6  DEPENDS="libQtGui libQtNetwork bzlib"
     1.7 +LICENSE="MIT"
     1.8  
     1.9  # Download tarball
    1.10 -WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \
    1.11 -      '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||')
    1.12 +case "$PACKAGE" in
    1.13 +bitcoin)
    1.14 +	WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE/en/download | sed \
    1.15 +	      '/linux.tar/!d;s/.*href="\([^"]*\).*/\1/;s|/download$||') ;;
    1.16 +litecoin)
    1.17 +	WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed \
    1.18 +	      '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q') ;;
    1.19 +esac
    1.20  case "$WGET_URL" in
    1.21  ftp*|http*);;
    1.22  *) WGET_URL=$WEB_SITE$WGET_URL;;
    1.23 @@ -17,7 +24,7 @@
    1.24  [ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
    1.25  
    1.26  mkdir -p $PACKAGE-$VERSION/fs/usr/bin
    1.27 -tar xzf $TARBALL
    1.28 +busybox tar xf $TARBALL
    1.29  
    1.30  mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin
    1.31  rm -rf $PACKAGE-$VERSION-linux
     2.1 --- a/libreoffice	Mon Feb 17 09:38:45 2014 +0000
     2.2 +++ b/libreoffice	Tue Feb 18 21:52:26 2014 +0000
     2.3 @@ -16,6 +16,7 @@
     2.4  PREFIX="LibreOffice"
     2.5  SUFFIX="Linux_x86_rpm.tar.gz"
     2.6  WGET_URL="http://download.documentfoundation.org/libreoffice/$DIR"
     2.7 +LICENSE="LGPL3"
     2.8  
     2.9  VERSION="$(basename $(wget -O - $WGET_URL/ 2> /dev/null | \
    2.10  	sed '/href=\"[0-9]/!d;s/.*href=\"//;s/[/\">].*//' | tail -1))"
     3.1 --- a/litecoin	Mon Feb 17 09:38:45 2014 +0000
     3.2 +++ b/litecoin	Tue Feb 18 21:52:26 2014 +0000
     3.3 @@ -1,45 +1,1 @@
     3.4 -WEB_SITE="http://$PACKAGE.org/"
     3.5 -SHORT_DESC="New digital currency for instant payments to anyone, anywhere."
     3.6 -MAINTAINER="somebody@$PACKAGE.org"
     3.7 -DEPENDS="libQtGui libQtNetwork bzlib"
     3.8 -
     3.9 -# Download tarball
    3.10 -WGET_URL=$(wget --no-check-certificate -O - $WEB_SITE | sed '/linux.tar/!d;;s/.*href="\([^"]*\).*/\1/;q')
    3.11 -case "$WGET_URL" in
    3.12 -ftp*|http*);;
    3.13 -*) WGET_URL=$WEB_SITE$WGET_URL;;
    3.14 -esac
    3.15 -TARBALL="$(basename $WGET_URL)"
    3.16 -VERSION="$(echo $TARBALL | sed 's/.*coin-\(.*\)-linux.tar.*/\1/')"
    3.17 -wget --no-check-certificate -O $TARBALL "$WGET_URL"
    3.18 -
    3.19 -[ -f $TARBALL ] || abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
    3.20 -
    3.21 -mkdir -p $PACKAGE-$VERSION/fs/usr/bin
    3.22 -busybox tar xf $TARBALL
    3.23 -
    3.24 -mv $PACKAGE-$VERSION-linux/bin/32/* $PACKAGE-$VERSION/fs/usr/bin
    3.25 -rm -rf $PACKAGE-$VERSION-linux
    3.26 -
    3.27 -# extracted pkg can be removed: Save RAM
    3.28 -rm -f $TARBALL
    3.29 -
    3.30 -cd $PACKAGE-$VERSION/fs
    3.31 -
    3.32 -# Create menu
    3.33 -mkdir -p usr/share/applications
    3.34 -cat > usr/share/applications/$PACKAGE.desktop <<EOT
    3.35 -[Desktop Entry]
    3.36 -Version=1.0
    3.37 -Encoding=UTF-8
    3.38 -Name=$PACKAGE
    3.39 -Exec=/usr/bin/$PACKAGE-qt
    3.40 -Icon=stock_certificate.png
    3.41 -Terminal=false
    3.42 -Categories=Application
    3.43 -Comment=$SHORT_DESC
    3.44 -Type=Application
    3.45 -Categories=Office;
    3.46 -EOT
    3.47 -cd ../..
    3.48 -set +e
    3.49 +bitcoin
    3.50 \ No newline at end of file
     4.1 --- a/openoffice3	Mon Feb 17 09:38:45 2014 +0000
     4.2 +++ b/openoffice3	Tue Feb 18 21:52:26 2014 +0000
     4.3 @@ -6,6 +6,7 @@
     4.4  # Author : Eric Joseph-Alexandre <erjo@slitaz.org>
     4.5  
     4.6  PACKAGE="OpenOffice3"
     4.7 +LICENSE="Apache"
     4.8  URL="http://www.openoffice.org"
     4.9  PATTERN="Linux_x86_install-rpm"
    4.10  
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/ueagle-atm-firmware	Tue Feb 18 21:52:26 2014 +0000
     5.3 @@ -0,0 +1,1 @@
     5.4 +ueagle-firmware
     5.5 \ No newline at end of file
     6.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     6.2 +++ b/ueagle-firmware	Tue Feb 18 21:52:26 2014 +0000
     6.3 @@ -0,0 +1,38 @@
     6.4 +DEPENDS=""
     6.5 +
     6.6 +wget-ueagle()
     6.7 +{
     6.8 +	while read url ; do
     6.9 +		WGET_URL=$url/$1
    6.10 +		wget $WGET_URL
    6.11 +		[ -s $1 ] || continue
    6.12 +		tar xzf $1
    6.13 +		return
    6.14 +	done
    6.15 +	abort_package "Could not download $1. Exiting."
    6.16 +}
    6.17 +
    6.18 +mkdir -p $PACKAGE-$VERSION/fs/lib/firmware
    6.19 +VERSION="1.1"
    6.20 +TARBALL="ueagle-data-$VERSION.tar.gz"
    6.21 +SHORT_DESC="Firmware for Fast800 USB ADSL Modem."
    6.22 +SOURCE="ueagle-data"
    6.23 +WEB_SITE="http://eagle-usb.org/"
    6.24 +wget-ueagle ueagle4-data-1.0.tar.gz <<EOT
    6.25 +ftp://ftp.by.debian.org/pub/gentoo-distfiles/distfiles
    6.26 +http://pkgs.fedoraproject.org/repo/pkgs/ueagle-atm4-firmware/ueagle4-data-1.0.tar.gz/7b6b8b1dfe5faaab407c8e52638fa72b
    6.27 +ftp://ftp.uni-frankfurt.de/pub/Mirrors2/gentoo.org/distfiles
    6.28 +ftp://84.39.110.99/gentoo/distfiles
    6.29 +EOT
    6.30 +wget-ueagle $TARBALL <<EOT
    6.31 +http://castet.matthieu.free.fr/eagle/non-free
    6.32 +ftp://ftp.coolmax.one.pl/pub/linux/repository/pkg/linux-atm/Internet
    6.33 +http://eagle-usb.org/ueagle-atm/non-free
    6.34 +EOT
    6.35 +mkdir -p $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm
    6.36 +cp -a ueagle-*/*.fw ueagle-*/*.bin ueagle4*/*.fw ueagle4*/*.bin* \
    6.37 +	$PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm
    6.38 +chown root.root $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/*
    6.39 +ln $PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin.v2 \
    6.40 +	$PACKAGE-$VERSION/fs/lib/firmware/ueagle-atm/CMV4p.bin || true
    6.41 +set +e