wok-next annotate webian-shell/receipt @ rev 21017

Some maintenance
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 16 16:46:05 2018 +0300 (2018-10-16)
parents d43bf7aae921
children d5aab818505e
rev   line source
al@21017 1 # SliTaz package receipt v2.
hackdorte@19038 2
hackdorte@19038 3 PACKAGE="webian-shell"
hackdorte@19038 4 VERSION="0.1"
hackdorte@19038 5 CATEGORY="network"
al@21017 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/"
al@21017 10
hackdorte@19039 11 GITHUB="https://cloud.github.com/downloads"
pascal@19041 12 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
hackdorte@19038 13 WGET_URL="$GITHUB/webianproject/shell/$TARBALL"
hackdorte@19038 14
al@21017 15 DEPENDS="gtk2 nss"
hackdorte@19038 16
al@21017 17 compile_rules() {
al@21017 18 mkdir -p $install/usr/share/applications
al@21017 19 mkdir -p $install/usr/share/pixmaps
al@21017 20 mkdir -p $install/usr/lib/webian-shell
hackdorte@19038 21
al@21017 22 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
al@21017 23 cp -a $src/* $install/usr/lib/webian-shell
hackdorte@19038 24 }
hackdorte@19038 25
al@21017 26 genpkg_rules() {
al@21017 27 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
hackdorte@19038 28 [Desktop Entry]
hackdorte@19038 29 Type=Application
hackdorte@19038 30 Name=Webian Shell
hackdorte@19038 31 Comment=A full screen web browser.
hackdorte@19038 32 Exec=webian-shell
hackdorte@19038 33 Icon=webian-shell
hackdorte@19038 34 Categories=Network;WebBrowser;
hackdorte@19038 35 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 36 EOT
hackdorte@19038 37
al@21017 38 cp -a $install/* $fs
hackdorte@19038 39 }
hackdorte@19038 40
al@21017 41 post_install() {
pascal@19041 42 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
hackdorte@19038 43 }
hackdorte@19038 44
al@21017 45 post_remove() {
pascal@19041 46 rm -rf $1/usr/bin/webian-shell
hackdorte@19038 47 }