wok view webian-shell/receipt @ rev 25805

created recipe for xfce4-weather-plugin
author Hans-G?nter Theisgen
date Wed Nov 13 15:24:31 2024 +0100 (8 days ago)
parents df63c4ce07f8
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://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$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 # Rules to configure and make the package.
24 compile_rules()
25 {
27 mkdir -p $install/usr/share/applications
28 mkdir -p $install/usr/share/pixmaps
29 mkdir -p $install/usr/lib/webian-shell
31 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
32 cp -a $src/* $install/usr/lib/webian-shell
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
40 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
41 [Desktop Entry]
42 Type=Application
43 Name=Webian Shell
44 Comment=A full screen web browser.
45 Exec=webian-shell
46 Icon=webian-shell
47 Categories=Network;WebBrowser;
48 MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
49 EOT
51 cp -a $install/* $fs
53 }
55 post_install()
56 {
57 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
58 }
60 post_remove()
61 {
62 rm -rf $1/usr/bin/webian-shell
63 }