wok annotate get-palemoon/stuff/get-palemoon @ rev 22455

get-palemoon: revert my edits (did not see Pascal edited shortly before me)
author Erkan Yilmaz <erkan@slitaz.org>
date Thu Dec 26 11:06:02 2019 +0000 (2019-12-26)
parents 0c9911119e73
children c07aaa614a02
rev   line source
al@16688 1 #!/bin/sh
al@16688 2 # get Pale Moon web browser
al@16688 3
pascal@20550 4 PACKAGE="palemoon-opt"
pascal@20550 5 WEB_SITE="http://linux.palemoon.org"
pascal@20550 6 PKGROOT="/opt/palemoon"
pascal@20550 7 ################
pascal@20550 8 WGET_URL="$WEB_SITE$(wget -O - $WEB_SITE/download/mainline/ 2> /dev/null | \
mojo@20694 9 sed '/i686/!d;s/.*href="\([^"]*\).*/\1/;q')"
pascal@20550 10 VERSION="$(echo $WGET_URL | sed 's/.*palemoon-\([0-9\.]*\)\..*/\1/')"
pascal@20036 11
erkan@22455 12 mkdir -p $1/opt; cd $1/opt; busybox wget -O - $WGET_URL | tar -xf -
al@16688 13
al@16688 14 ################
pascal@20550 15 DESKTOP=usr/share/applications/$PACKAGE.desktop
al@16688 16 cat > $1/$DESKTOP << EOA
al@16688 17 [Desktop Entry]
al@16688 18 Type=Application
pascal@20036 19 Name=Palemoon v${VERSION%.*}
pascal@20550 20 Exec=$PKGROOT/palemoon %u
pascal@20550 21 Icon=$PKGROOT/browser/icons/mozicon128.png
al@16688 22 StartupNotify=true
al@16688 23 Categories=GTK;Network;WebBrowser;
al@16688 24 MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
al@16688 25 EOA
al@16688 26 ################
pascal@20550 27 PKGDIR="$1/var/lib/tazpkg/installed/$PACKAGE"
al@16688 28 mkdir -p "$PKGDIR"
al@16688 29 cat > "$PKGDIR/receipt" << EOR
al@16688 30 # SliTaz package receipt.
al@16688 31
pascal@20550 32 UNPACKED_SIZE="$(du -hs $1$PKGROOT | awk '{ print $1 }')"
pascal@20550 33 PACKAGE="$PACKAGE"
al@16688 34 VERSION="$VERSION"
al@16688 35 CATEGORY="network"
al@16688 36 SHORT_DESC="Browser based on Firefox that's optimised for performance"
al@16688 37 MAINTAINER="al.bobylev@gmail.com"
al@16688 38 LICENSE="MPL2"
pascal@20550 39 WEB_SITE="$WEB_SITE"
al@16688 40
erkan@22455 41 DEPENDS="dbus-glib"
pascal@20550 42 SUGGESTED="ffmpeg"
al@16688 43 EOR
al@16688 44 ################
pascal@20552 45 ( cd $1/; find .$PKGROOT ./$DESKTOP -type f -exec md5sum {} \; ) | \
pascal@20555 46 cut -c-34,36- | tee "$PKGDIR/md5sum" | cut -c35- > "$PKGDIR/files.list"
al@16688 47 ################