wok-current view webian-shell/receipt @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (20 months ago) |
parents | d765616e1f3d |
children |
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="https://webian.org/shell/"
10 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
11 WGET_URL="https://github.com/downloads/webianproject/shell/$TARBALL"
13 DEPENDS="gtk+ nss"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://github.com/webianproject/shell/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
21 }
23 compile_rules()
24 {
26 mkdir -p $install/usr/share/applications
27 mkdir -p $install/usr/share/pixmaps
28 mkdir -p $install/usr/lib/webian-shell
30 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
31 cp -a $src/* $install/usr/lib/webian-shell
33 }
35 genpkg_rules()
36 {
38 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
39 [Desktop Entry]
40 Type=Application
41 Name=Webian Shell
42 Comment=A full screen web browser.
43 Exec=webian-shell
44 Icon=webian-shell
45 Categories=Network;WebBrowser;
46 MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
47 EOT
49 cp -a $install/* $fs
51 }
53 post_install()
54 {
55 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
56 }
58 post_remove()
59 {
60 rm -rf $1/usr/bin/webian-shell
61 }