# HG changeset patch # User Pascal Bellard # Date 1432886623 -7200 # Node ID 5d357cb2f906b8f13e0ee7462cff531334010ef4 # Parent 2d794d057562db933c904ec02cd1380472581529 Add firefox-official diff -r 2d794d057562 -r 5d357cb2f906 cpp2 --- a/cpp2 Sat May 23 13:48:59 2015 +0300 +++ b/cpp2 Fri May 29 10:03:43 2015 +0200 @@ -4,6 +4,7 @@ VERSION="2.95.4-24" LICENSE="GPL2" # end of get.list data +[ "$1" == "--get-version" ] && echo $VERSION && exit TARBALL=cpp-2.95_${VERSION}_i386.deb WGET_URL=http://old-releases.ubuntu.com/ubuntu/pool/universe/g/gcc-2.95/$TARBALL diff -r 2d794d057562 -r 5d357cb2f906 firefox-official --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/firefox-official Fri May 29 10:03:43 2015 +0200 @@ -0,0 +1,33 @@ +SHORT_DESC="Official Firefox build by the Mozilla foundation." +WEB_SITE="http://www.mozilla.org/firefox" +CATEGORY="network" +LICENSE="MPL2" +# end of get.list data +URL="http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/?C=M;O=D" +VERSION=$(wget -O - $URL | sed \ + '/href="[0-9\./]*"/!d;s|.*href="[^"]*">\([^ /dev/null | grep \ href=\"[0-9] | tail -1 | sed 's/.*href=\"\(.*\)\".*/\1/') 2> /dev/null)" - [ -n "$VERSION" ] && break + [ -n "$VERSION" ] || continue + [ "$1" == "--get-version" ] && echo $VERSION && exit + break done if [ -z "$VERSION" ]; then diff -r 2d794d057562 -r 5d357cb2f906 palemoon --- a/palemoon Sat May 23 13:48:59 2015 +0300 +++ b/palemoon Fri May 29 10:03:43 2015 +0200 @@ -7,6 +7,7 @@ MAINTAINER="al.bobylev@gmail.com" VERSION="$(wget -O - $URL/ | sed \ '/projects\/pm4linux\/files\/[1-9]/!d;s|.*files/\([^/]*\)/.*|\1|;q')" +[ "$1" == "--get-version" ] && echo $VERSION && exit TARBALL=$PACKAGE-$VERSION.en-US.linux-i686.tar.bz2 WGET_URL=$URL/$VERSION/$TARBALL TAGS="browser"