wok annotate 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
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@19039 10 GITHUB="https://cloud.github.com/downloads"
pascal@19041 11 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
hackdorte@19038 12 WGET_URL="$GITHUB/webianproject/shell/$TARBALL"
hackdorte@19038 13
hackdorte@19038 14 DEPENDS="gtk+ nss"
hackdorte@19038 15
hackdorte@19038 16 compile_rules()
hackdorte@19038 17 {
hackdorte@19038 18
hackdorte@19038 19 mkdir -p $install/usr/share/applications
hackdorte@19038 20 mkdir -p $install/usr/share/pixmaps
hackdorte@19038 21 mkdir -p $install/usr/lib/webian-shell
hackdorte@19038 22
hackdorte@19038 23 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
hackdorte@19038 24 cp -a $src/* $install/usr/lib/webian-shell
hackdorte@19038 25
hackdorte@19038 26 }
hackdorte@19038 27
hackdorte@19038 28 genpkg_rules()
hackdorte@19038 29 {
hackdorte@19038 30
hackdorte@19038 31 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
hackdorte@19038 32 [Desktop Entry]
hackdorte@19038 33 Type=Application
hackdorte@19038 34 Name=Webian Shell
hackdorte@19038 35 Comment=A full screen web browser.
hackdorte@19038 36 Exec=webian-shell
hackdorte@19038 37 Icon=webian-shell
hackdorte@19038 38 Categories=Network;WebBrowser;
hackdorte@19038 39 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 40 EOT
hackdorte@19038 41
hackdorte@19038 42 cp -a $install/* $fs
hackdorte@19038 43
hackdorte@19038 44 }
hackdorte@19038 45
hackdorte@19038 46 post_install()
hackdorte@19038 47 {
pascal@19041 48 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
hackdorte@19038 49 }
hackdorte@19038 50
hackdorte@19038 51 post_remove()
hackdorte@19038 52 {
pascal@19041 53 rm -rf $1/usr/bin/webian-shell
hackdorte@19038 54 }