wok-6.x view get-palemoon/stuff/get-palemoon @ rev 23388
updated perl-proc-processtable (0.45 -> 0.59)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Mar 31 16:27:39 2020 +0100 (2020-03-31) |
parents | c07aaa614a02 |
children |
line source
1 #!/bin/sh
2 # get Pale Moon web browser
4 PACKAGE="palemoon-opt"
5 WEB_SITE="http://linux.palemoon.org"
6 PKGROOT="/opt/palemoon"
7 ################
8 WGET_URL="$WEB_SITE$(wget -O - $WEB_SITE/download/mainline/ 2> /dev/null | \
9 sed '/i686/!d;s/.*href="\([^"]*\).*/\1/;q')"
10 VERSION="$(echo $WGET_URL | sed 's/.*palemoon-\([0-9\.]*\)\..*/\1/')"
12 # busybox tar autodetect compression type
13 mkdir -p $1/opt; cd $1/opt; busybox wget -O - $WGET_URL | busybox tar -xJf -
15 ################
16 DESKTOP=usr/share/applications/$PACKAGE.desktop
17 cat > $1/$DESKTOP << EOA
18 [Desktop Entry]
19 Type=Application
20 Name=Palemoon v${VERSION%.*}
21 Exec=$PKGROOT/palemoon %u
22 Icon=$PKGROOT/browser/icons/mozicon128.png
23 StartupNotify=true
24 Categories=GTK;Network;WebBrowser;
25 MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
26 EOA
27 ################
28 PKGDIR="$1/var/lib/tazpkg/installed/$PACKAGE"
29 mkdir -p "$PKGDIR"
30 cat > "$PKGDIR/receipt" << EOR
31 # SliTaz package receipt.
33 UNPACKED_SIZE="$(du -hs $1$PKGROOT | awk '{ print $1 }')"
34 PACKAGE="$PACKAGE"
35 VERSION="$VERSION"
36 CATEGORY="network"
37 SHORT_DESC="Browser based on Firefox that's optimised for performance"
38 MAINTAINER="al.bobylev@gmail.com"
39 LICENSE="MPL2"
40 WEB_SITE="$WEB_SITE"
42 DEPENDS="dbus-glib"
43 SUGGESTED="ffmpeg"
44 EOR
45 ################
46 ( cd $1/; find .$PKGROOT ./$DESKTOP -type f -exec md5sum {} \; ) | \
47 cut -c-34,36- | tee "$PKGDIR/md5sum" | cut -c35- > "$PKGDIR/files.list"
48 ################