wok annotate webian-shell/receipt @ rev 25587

Update some web_site / wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 06 11:04:30 2023 +0000 (12 months ago)
parents df63c4ce07f8
children
rev   line source
hackdorte@19038 1 # SliTaz package receipt.
hackdorte@19038 2
hackdorte@19038 3 PACKAGE="webian-shell"
hackdorte@19038 4 VERSION="0.1"
hackdorte@19038 5 CATEGORY="network"
hackdorte@19038 6 SHORT_DESC="A full screen web browser."
hackdorte@19038 7 MAINTAINER="hackdorte@sapo.pt"
hackdorte@19038 8 LICENSE="MPL2"
pascal@24746 9 WEB_SITE="https://webian.org/shell/"
pascal@19041 10 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
pascal@25587 11 WGET_URL="https://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$TARBALL"
hackdorte@19038 12
hackdorte@19038 13 DEPENDS="gtk+ nss"
pascal@19042 14 BUILD_DEPENDS="wget"
hackdorte@19038 15
pascal@24304 16 # What is the latest version available today?
pascal@24304 17 current_version()
pascal@24304 18 {
pascal@24304 19 wget -O - https://github.com/webianproject/shell/tags 2>/dev/null | \
pascal@24304 20 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24304 21 }
pascal@24304 22
pascal@25587 23 # Rules to configure and make the package.
hackdorte@19038 24 compile_rules()
hackdorte@19038 25 {
hackdorte@19038 26
hackdorte@19038 27 mkdir -p $install/usr/share/applications
hackdorte@19038 28 mkdir -p $install/usr/share/pixmaps
hackdorte@19038 29 mkdir -p $install/usr/lib/webian-shell
hackdorte@19038 30
hackdorte@19038 31 cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
hackdorte@19038 32 cp -a $src/* $install/usr/lib/webian-shell
hackdorte@19038 33
hackdorte@19038 34 }
hackdorte@19038 35
pascal@25587 36 # Rules to gen a SliTaz package suitable for Tazpkg.
hackdorte@19038 37 genpkg_rules()
hackdorte@19038 38 {
hackdorte@19038 39
hackdorte@19038 40 cat > $install/usr/share/applications/webian-shell.desktop <<EOT
hackdorte@19038 41 [Desktop Entry]
hackdorte@19038 42 Type=Application
hackdorte@19038 43 Name=Webian Shell
hackdorte@19038 44 Comment=A full screen web browser.
hackdorte@19038 45 Exec=webian-shell
hackdorte@19038 46 Icon=webian-shell
hackdorte@19038 47 Categories=Network;WebBrowser;
hackdorte@19038 48 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 49 EOT
hackdorte@19038 50
hackdorte@19038 51 cp -a $install/* $fs
hackdorte@19038 52
hackdorte@19038 53 }
hackdorte@19038 54
hackdorte@19038 55 post_install()
hackdorte@19038 56 {
pascal@19041 57 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
hackdorte@19038 58 }
hackdorte@19038 59
hackdorte@19038 60 post_remove()
hackdorte@19038 61 {
pascal@19041 62 rm -rf $1/usr/bin/webian-shell
hackdorte@19038 63 }