SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "web-whatsapp"

# SliTaz package receipt.

PACKAGE="web-whatsapp"
VERSION="0.1"
CATEGORY="network"
SHORT_DESC="Send and receive WhatsApp messages right from your computer."
MAINTAINER="hackdorte@sapo.pt"
LICENSE="WhatsApp-Inc"
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 whatsapp"

DEPENDS="firefox-official"
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.
#
# >_ WhatsApp Desktop
#
cat > $install/usr/share/applications/web-whatsapp.desktop << EOT
[Desktop Entry]
Type=Application
Name=WhatsApp Web
Comment=Send and receive WhatsApp messages right from your computer.
Categories=Network;
Icon=web-whatsapp
Exec=firefox-official "https://web.whatsapp.com/"

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
}
5935 packages and 845883 files in cooking database (Sun Jun 30 00:45:24 2024)