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