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://download.tuxfamily.org/slitaz/sources/packages-cooking/${TARBALL:0:1}/$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'
}

# Rules to configure and make the package.
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

}

# Rules to gen a SliTaz package suitable for Tazpkg.
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
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)