wok-current view get-palemoon/stuff/get-palemoon @ rev 21808
Add virtualbox-ose-modules*
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 17 16:23:26 2019 +0200 (2019-08-17) |
parents | 9b24395c2ef0 |
children | e05d9bc413f3 |
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 mkdir -p $1/opt; cd $1/opt; busybox wget -O - $WGET_URL | tar -xjf -
14 ################
15 DESKTOP=usr/share/applications/$PACKAGE.desktop
16 cat > $1/$DESKTOP << EOA
17 [Desktop Entry]
18 Type=Application
19 Name=Palemoon v${VERSION%.*}
20 Exec=$PKGROOT/palemoon %u
21 Icon=$PKGROOT/browser/icons/mozicon128.png
22 StartupNotify=true
23 Categories=GTK;Network;WebBrowser;
24 MimeType=text/html;text/xml;application/xhtml+xml;application/xml;
25 EOA
26 ################
27 PKGDIR="$1/var/lib/tazpkg/installed/$PACKAGE"
28 mkdir -p "$PKGDIR"
29 cat > "$PKGDIR/receipt" << EOR
30 # SliTaz package receipt.
32 UNPACKED_SIZE="$(du -hs $1$PKGROOT | awk '{ print $1 }')"
33 PACKAGE="$PACKAGE"
34 VERSION="$VERSION"
35 CATEGORY="network"
36 SHORT_DESC="Browser based on Firefox that's optimised for performance"
37 MAINTAINER="al.bobylev@gmail.com"
38 LICENSE="MPL2"
39 WEB_SITE="$WEB_SITE"
41 DEPENDS="dbus-glib"
42 SUGGESTED="ffmpeg"
43 EOR
44 ################
45 ( cd $1/; find .$PKGROOT ./$DESKTOP -type f -exec md5sum {} \; ) | \
46 cut -c-34,36- | tee "$PKGDIR/md5sum" | cut -c35- > "$PKGDIR/files.list"
47 ################