wok view webian-shell/receipt @ rev 24453
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 15 18:29:48 2022 +0000 (2022-02-15) |
parents | b1d91bf4e3b2 |
children | cb67b4f8be05 |
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="http://webian.org/shell/"
10 GITHUB="https://cloud.github.com/downloads"
11 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
12 WGET_URL="$GITHUB/webianproject/shell/$TARBALL"
14 DEPENDS="gtk+ nss"
15 BUILD_DEPENDS="wget"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - https://github.com/webianproject/shell/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
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 genpkg_rules()
37 {
39 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
40 [Desktop Entry]
41 Type=Application
42 Name=Webian Shell
43 Comment=A full screen web browser.
44 Exec=webian-shell
45 Icon=webian-shell
46 Categories=Network;WebBrowser;
47 MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
48 EOT
50 cp -a $install/* $fs
52 }
54 post_install()
55 {
56 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
57 }
59 post_remove()
60 {
61 rm -rf $1/usr/bin/webian-shell
62 }