wok-6.x annotate webian-shell/receipt @ rev 24648
updated hplip (3.21.8 -> 3.22.2)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Mar 10 14:02:17 2022 +0100 (2022-03-10) |
parents | b1d91bf4e3b2 |
children | cb67b4f8be05 |
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" |
hackdorte@19038 | 9 WEB_SITE="http://webian.org/shell/" |
hackdorte@19039 | 10 GITHUB="https://cloud.github.com/downloads" |
pascal@19041 | 11 TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz" |
hackdorte@19038 | 12 WGET_URL="$GITHUB/webianproject/shell/$TARBALL" |
hackdorte@19038 | 13 |
hackdorte@19038 | 14 DEPENDS="gtk+ nss" |
pascal@19042 | 15 BUILD_DEPENDS="wget" |
hackdorte@19038 | 16 |
pascal@24304 | 17 # What is the latest version available today? |
pascal@24304 | 18 current_version() |
pascal@24304 | 19 { |
pascal@24304 | 20 wget -O - https://github.com/webianproject/shell/tags 2>/dev/null | \ |
pascal@24304 | 21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q' |
pascal@24304 | 22 } |
pascal@24304 | 23 |
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 |
hackdorte@19038 | 36 genpkg_rules() |
hackdorte@19038 | 37 { |
hackdorte@19038 | 38 |
hackdorte@19038 | 39 cat > $install/usr/share/applications/webian-shell.desktop <<EOT |
hackdorte@19038 | 40 [Desktop Entry] |
hackdorte@19038 | 41 Type=Application |
hackdorte@19038 | 42 Name=Webian Shell |
hackdorte@19038 | 43 Comment=A full screen web browser. |
hackdorte@19038 | 44 Exec=webian-shell |
hackdorte@19038 | 45 Icon=webian-shell |
hackdorte@19038 | 46 Categories=Network;WebBrowser; |
hackdorte@19038 | 47 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 | 48 EOT |
hackdorte@19038 | 49 |
hackdorte@19038 | 50 cp -a $install/* $fs |
hackdorte@19038 | 51 |
hackdorte@19038 | 52 } |
hackdorte@19038 | 53 |
hackdorte@19038 | 54 post_install() |
hackdorte@19038 | 55 { |
pascal@19041 | 56 ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell |
hackdorte@19038 | 57 } |
hackdorte@19038 | 58 |
hackdorte@19038 | 59 post_remove() |
hackdorte@19038 | 60 { |
pascal@19041 | 61 rm -rf $1/usr/bin/webian-shell |
hackdorte@19038 | 62 } |