wok-next view 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
line source
1 # SliTaz package receipt v2.
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 GITHUB="https://cloud.github.com/downloads"
12 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
13 WGET_URL="$GITHUB/webianproject/shell/$TARBALL"
15 DEPENDS="gtk2 nss"
17 compile_rules() {
18 mkdir -p $install/usr/share/applications
19 mkdir -p $install/usr/share/pixmaps
20 mkdir -p $install/usr/lib/webian-shell
22 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
23 cp -a $src/* $install/usr/lib/webian-shell
24 }
26 genpkg_rules() {
27 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
28 [Desktop Entry]
29 Type=Application
30 Name=Webian Shell
31 Comment=A full screen web browser.
32 Exec=webian-shell
33 Icon=webian-shell
34 Categories=Network;WebBrowser;
35 MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
36 EOT
38 cp -a $install/* $fs
39 }
41 post_install() {
42 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
43 }
45 post_remove() {
46 rm -rf $1/usr/bin/webian-shell
47 }