wok view web-telegram/receipt @ rev 25734
updated sc-im (-> 0.8.4)
author | Hans-G?nter Theisgen |
---|---|
date | Thu Aug 22 14:48:42 2024 +0100 (4 months ago) |
parents | 3842d11b928f |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="web-telegram"
4 VERSION="0.1"
5 CATEGORY="network"
6 SHORT_DESC="Telegram web for all platforms."
7 MAINTAINER="hackdorte@sapo.pt"
8 LICENSE="GPLv3"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://people.slitaz.org/~leonardolaporte"
11 STUFF_DIR="lab.slitaz/5.0/pkg/web/messengers"
12 WGET_URL="${WEB_SITE}/$STUFF_DIR/${TARBALL}"
13 TAGS="cloud telegram"
15 BUILD_DEPENDS="wget"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
28 # Build Tree.
29 mkdir -p $install/usr/share/applications
30 mkdir -p $install/usr/share/pixmaps
32 # Writing ".desktop" files.
33 # -------------------------
34 # The icons preserve the 'web-*' name for no future conflicts
35 # with other applications.
36 #
37 # >_ Telegram Desktop
38 #
39 cat > $install/usr/share/applications/web-telegram.desktop << EOT
40 [Desktop Entry]
41 Type=Application
42 Name=Telegram Web
43 Comment=Telegram web for all platforms.
44 Categories=Network;
45 Icon=web-telegram
46 Exec=browser "https://web.telegram.org/"
48 EOT
49 #
50 # >_ Done
51 #
52 cp -a $src/icon/* $install/usr/share/pixmaps
53 }
55 # Rules to gen a SliTaz package suitable for Tazpkg.
56 genpkg_rules()
57 {
58 cp -a $install/* $fs
59 }