SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "webian-shell"

# SliTaz package receipt.

PACKAGE="webian-shell"
VERSION="0.1"
CATEGORY="network"
SHORT_DESC="A full screen web browser."
MAINTAINER="hackdorte@sapo.pt"
LICENSE="MPL2"
WEB_SITE="https://webian.org/shell/"
TARBALL="${PACKAGE/-/_}_$VERSION-linux_32.tar.gz"
WGET_URL="https://github.com/downloads/webianproject/shell/$TARBALL"

DEPENDS="gtk+ nss"
BUILD_DEPENDS="wget"

# What is the latest version available today?
current_version()
{
    wget -O - https://github.com/webianproject/shell/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
}

compile_rules()
{

mkdir -p $install/usr/share/applications
mkdir -p $install/usr/share/pixmaps
mkdir -p $install/usr/lib/webian-shell

cp -a $src/xulrunner/chrome/icons/default/default32.png $install/usr/share/pixmaps/webian-shell.png
cp -a $src/* $install/usr/lib/webian-shell

}

genpkg_rules()
{

cat > $install/usr/share/applications/webian-shell.desktop <<EOT
[Desktop Entry]
Type=Application
Name=Webian Shell
Comment=A full screen web browser.
Exec=webian-shell
Icon=webian-shell
Categories=Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;x-scheme-handler/http;x-scheme-handler/https;
EOT

cp -a $install/* $fs

}

post_install()
{
    ln -s /usr/lib/webian-shell/Webian\ Shell $1/usr/bin/webian-shell
}

post_remove()
{
    rm -rf $1/usr/bin/webian-shell
}
6047 packages and 209931 files in current database (Mon Jul 1 15:25:36 2024)