SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "web-telegram"

# SliTaz package receipt.

PACKAGE="web-telegram"
VERSION="0.1"
CATEGORY="network"
SHORT_DESC="Telegram web for all platforms."
MAINTAINER="hackdorte@sapo.pt"
LICENSE="GPLv3"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://people.slitaz.org/~leonardolaporte"
STUFF_DIR="lab.slitaz/5.0/pkg/web/messengers"
WGET_URL="${WEB_SITE}/$STUFF_DIR/${TARBALL}"
TAGS="cloud telegram"

BUILD_DEPENDS="wget"

# What is the latest version available today?
current_version()
{
    wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
    sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
}

# Rules to configure and make the package.
compile_rules()
{

# Build Tree.
  mkdir -p $install/usr/share/applications
  mkdir -p $install/usr/share/pixmaps

# Writing ".desktop" files.
# -------------------------
# The icons preserve the 'web-*' name for no future conflicts
# with other applications.
#
# >_ Telegram Desktop
#
cat > $install/usr/share/applications/web-telegram.desktop << EOT
[Desktop Entry]
Type=Application
Name=Telegram Web
Comment=Telegram web for all platforms.
Categories=Network;
Icon=web-telegram
Exec=browser "https://web.telegram.org/"

EOT
#
# >_ Done
#
  cp -a $src/icon/* $install/usr/share/pixmaps
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
  cp -a $install/* $fs
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)