wok view webian-shell/receipt @ rev 19041

webian-shell: improvements in the variables
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 15 14:58:56 2016 +0200 (2016-04-15)
parents 42c000ae75d3
children b1d91bf4e3b2
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/"
10 GITHUB="https://cloud.github.com/downloads"
11 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
12 WGET_URL="$GITHUB/webianproject/shell/$TARBALL"
14 DEPENDS="gtk+ nss"
16 compile_rules()
17 {
19 mkdir -p $install/usr/share/applications
20 mkdir -p $install/usr/share/pixmaps
21 mkdir -p $install/usr/lib/webian-shell
23 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
24 cp -a $src/* $install/usr/lib/webian-shell
26 }
28 genpkg_rules()
29 {
31 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
32 [Desktop Entry]
33 Type=Application
34 Name=Webian Shell
35 Comment=A full screen web browser.
36 Exec=webian-shell
37 Icon=webian-shell
38 Categories=Network;WebBrowser;
39 MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
40 EOT
42 cp -a $install/* $fs
44 }
46 post_install()
47 {
48 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
49 }
51 post_remove()
52 {
53 rm -rf $1/usr/bin/webian-shell
54 }