get-scripts rev 45

Add firefox-official
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 29 10:03:43 2015 +0200 (2015-05-29)
parents 2d794d057562
children b2a3c2ad2631
files cpp2 firefox-official gcc2 gcc272 libreoffice openoffice3 palemoon
line diff
     1.1 --- a/cpp2	Sat May 23 13:48:59 2015 +0300
     1.2 +++ b/cpp2	Fri May 29 10:03:43 2015 +0200
     1.3 @@ -4,6 +4,7 @@
     1.4  VERSION="2.95.4-24"
     1.5  LICENSE="GPL2"
     1.6  # end of get.list data
     1.7 +[ "$1" == "--get-version" ] && echo $VERSION && exit
     1.8  TARBALL=cpp-2.95_${VERSION}_i386.deb
     1.9  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
    1.10  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/firefox-official	Fri May 29 10:03:43 2015 +0200
     2.3 @@ -0,0 +1,33 @@
     2.4 +SHORT_DESC="Official Firefox build by the Mozilla foundation."
     2.5 +WEB_SITE="http://www.mozilla.org/firefox"
     2.6 +CATEGORY="network"
     2.7 +LICENSE="MPL2"
     2.8 +# end of get.list data
     2.9 +URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/?C=M;O=D"
    2.10 +VERSION=$(wget -O - $URL | sed \
    2.11 +	  '/href="[0-9\./]*"/!d;s|.*href="[^"]*">\([^</]*\).*|\1|;q')
    2.12 +[ "$1" == "--get-version" ] && echo $VERSION && exit
    2.13 +SOURCE="firefox"
    2.14 +TARBALL="$SOURCE-$VERSION.tar.bz2"
    2.15 +WGET_URL="${URL%\?*}$VERSION/linux-i686/en-US/$TARBALL"
    2.16 +TAGS="web-browser"
    2.17 +HOST_ARCH="i486"
    2.18 +DEPENDS="gtk+"
    2.19 +
    2.20 +wget $WGET_URL
    2.21 +[ -f $TARBALL ] ||
    2.22 +abort_package "Could not download $TARBALL from $WGET_URL. Exiting."
    2.23 +
    2.24 +DESTDIR=$PACKAGE-$VERSION/fs
    2.25 +
    2.26 +mkdir -p \
    2.27 +	${DESTDIR}/usr/bin \
    2.28 +	${DESTDIR}/usr/lib/firefox-${VERSION} \
    2.29 +	${DESTDIR}/usr/share/pixmaps
    2.30 +tar xjf $TARBALL -C ${DESTDIR}/usr/lib/firefox-${VERSION}
    2.31 +# /usr/bin/firefox-official + pixmap
    2.32 +ln -s ../lib/firefox-${VERSION}/firefox ${DESTDIR}/usr/bin/${PACKAGE}
    2.33 +ln -s ../../lib/firefox-${VERSION}/browser/icons/mozicon128.png \
    2.34 +	${DESTDIR}/usr/share/pixmaps/${PACKAGE}.png
    2.35 +# Remove updater files (users can't upgrade anyway)
    2.36 +rm -f ${DESTDIR}/usr/lib/firefox-${VERSION}/update*
     3.1 --- a/gcc2	Sat May 23 13:48:59 2015 +0300
     3.2 +++ b/gcc2	Fri May 29 10:03:43 2015 +0200
     3.3 @@ -4,6 +4,7 @@
     3.4  VERSION="2.95.4-24"
     3.5  LICENSE="GPL2"
     3.6  # end of get.list data
     3.7 +[ "$1" == "--get-version" ] && echo $VERSION && exit
     3.8  TARBALL=gcc-2.95_${VERSION}_i386.deb
     3.9  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL
    3.10  DEPENDS="cpp2 binutils"
     4.1 --- a/gcc272	Sat May 23 13:48:59 2015 +0300
     4.2 +++ b/gcc272	Fri May 29 10:03:43 2015 +0200
     4.3 @@ -4,6 +4,7 @@
     4.4  VERSION="2.7.2.3-19"
     4.5  LICENSE="GPL2"
     4.6  # end of get.list data
     4.7 +[ "$1" == "--get-version" ] && echo $VERSION && exit
     4.8  TARBALL=gcc272_${VERSION}_i386.deb
     4.9  WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc272/$TARBALL
    4.10  DEPENDS="binutils"
     5.1 --- a/libreoffice	Sat May 23 13:48:59 2015 +0300
     5.2 +++ b/libreoffice	Fri May 29 10:03:43 2015 +0200
     5.3 @@ -24,6 +24,7 @@
     5.4  if [ -z "$VERSION" ]; then
     5.5  	abort_package "Can't detect an appropriate version. The version numbering or URL may have changed. Aborted."
     5.6  fi
     5.7 +[ "$1" == "--get-version" ] && echo $VERSION && exit
     5.8  VER="${VERSION/\-/}" # without hyphens
     5.9  
    5.10  
     6.1 --- a/openoffice3	Sat May 23 13:48:59 2015 +0300
     6.2 +++ b/openoffice3	Fri May 29 10:03:43 2015 +0200
     6.3 @@ -33,7 +33,9 @@
     6.4  	[ -n "$LOC" ] && DIR="localized/$LOC"
     6.5  	VERSION="$(basename $(wget -O - $MIRROR/$DIR/ 2> /dev/null | grep \
     6.6  	href=\"[0-9] | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/') 2> /dev/null)"
     6.7 -	[ -n "$VERSION" ] && break
     6.8 +	[ -n "$VERSION" ] || continue
     6.9 +	[ "$1" == "--get-version" ] && echo $VERSION && exit
    6.10 +	break
    6.11  done
    6.12  
    6.13  if [ -z "$VERSION" ]; then
     7.1 --- a/palemoon	Sat May 23 13:48:59 2015 +0300
     7.2 +++ b/palemoon	Fri May 29 10:03:43 2015 +0200
     7.3 @@ -7,6 +7,7 @@
     7.4  MAINTAINER="al.bobylev@gmail.com"
     7.5  VERSION="$(wget -O - $URL/ | sed \
     7.6  	'/projects\/pm4linux\/files\/[1-9]/!d;s|.*files/\([^/]*\)/.*|\1|;q')"
     7.7 +[ "$1" == "--get-version" ] && echo $VERSION && exit
     7.8  TARBALL=$PACKAGE-$VERSION.en-US.linux-i686.tar.bz2
     7.9  WGET_URL=$URL/$VERSION/$TARBALL
    7.10  TAGS="browser"