wok view webian-shell/receipt @ rev 19038

Add: Webian Shell (A full screen web browser.)
author Leonardo Laporte <hackdorte@sapo.pt>
date Fri Apr 15 08:16:46 2016 -0300 (2016-04-15)
parents
children 42c000ae75d3
line source
1 # SliTaz package receipt.
3 PACKAGE="webian-shell"
4 VERSION="0.1"
5 CATEGORY="network"
6 SHORT_DESC="A full screen web browser."
7 MAINTAINER="hackdorte@sapo.pt"
8 LICENSE="MPL2"
9 WEB_SITE="http://webian.org/shell/"
11 # Please, this receipt need improvements in the variables. Thank you.
12 GITHUB="https://github.com/downloads"
13 SOURCE="webian_shell_0.1-linux_32"
15 TARBALL="$SOURCE.tar.gz"
16 WGET_URL="$GITHUB/webianproject/shell/$TARBALL"
18 DEPENDS="gtk+ nss"
20 compile_rules()
21 {
23 mkdir -p $install/usr/share/applications
24 mkdir -p $install/usr/share/pixmaps
25 mkdir -p $install/usr/lib/webian-shell
27 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
28 cp -a $src/* $install/usr/lib/webian-shell
30 }
32 genpkg_rules()
33 {
35 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
36 [Desktop Entry]
37 Type=Application
38 Name=Webian Shell
39 Comment=A full screen web browser.
40 Exec=webian-shell
41 Icon=webian-shell
42 Categories=Network;WebBrowser;
43 MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
44 EOT
46 cp -a $install/* $fs
48 }
50 post_install()
51 {
52 cd /usr/bin
53 ln -s /usr/lib/webian-shell/Webian\ Shell webian-shell
54 }
56 post_remove()
57 {
58 rm -rf /usr/bin/webian-shell
59 }