wok annotate web-skype/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (2022-05-21)
parents 3842d11b928f
children
rev   line source
hackdorte@19071 1 # SliTaz package receipt.
hackdorte@19071 2
hackdorte@19071 3 PACKAGE="web-skype"
hackdorte@19071 4 VERSION="0.1"
hackdorte@19071 5 CATEGORY="network"
hackdorte@19071 6 SHORT_DESC="Makes it easier to connect with family and friends."
hackdorte@19071 7 MAINTAINER="hackdorte@sapo.pt"
hackdorte@19071 8 LICENSE="Microsoft"
hackdorte@19071 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
hackdorte@19071 10 WEB_SITE="http://people.slitaz.org/~leonardolaporte"
hackdorte@19071 11 STUFF_DIR="lab.slitaz/5.0/pkg/web/messengers"
hackdorte@19071 12 WGET_URL="${WEB_SITE}/$STUFF_DIR/${TARBALL}"
hackdorte@19071 13 TAGS="cloud skype"
hackdorte@19071 14
hackdorte@19071 15 DEPENDS="firefox-official"
hackdorte@19071 16 BUILD_DEPENDS="wget"
hackdorte@19071 17
pascal@24465 18 # What is the latest version available today?
pascal@24465 19 current_version()
pascal@24465 20 {
pascal@24465 21 wget -O - ${WGET_URL%/*}/ 2>/dev/null | \
pascal@24465 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24465 23 }
pascal@24465 24
hackdorte@19071 25 # Rules to configure and make the package.
hackdorte@19071 26 compile_rules()
hackdorte@19071 27 {
hackdorte@19071 28
hackdorte@19071 29 # Build Tree.
hackdorte@19071 30 mkdir -p $install/usr/share/applications
hackdorte@19071 31 mkdir -p $install/usr/share/pixmaps
hackdorte@19071 32
hackdorte@19071 33 # Writing ".desktop" files.
hackdorte@19071 34 # -------------------------
hackdorte@19071 35 # The icons preserve the 'web-*' name for no future conflicts
hackdorte@19071 36 # with other applications.
hackdorte@19071 37 #
hackdorte@19071 38 # >_ Skype Desktop
hackdorte@19071 39 #
hackdorte@19071 40 cat > $install/usr/share/applications/web-skype.desktop << EOT
hackdorte@19071 41 [Desktop Entry]
hackdorte@19071 42 Type=Application
hackdorte@19071 43 Name=Skype Web (Beta)
hackdorte@19071 44 Comment=Makes it easier to connect with family and friends. (Better with Firefox)
hackdorte@19071 45 Categories=Network;
hackdorte@19071 46 Icon=web-skype
hackdorte@19071 47 Exec=firefox-official "https://web.skype.com/"
hackdorte@19071 48
hackdorte@19071 49 EOT
hackdorte@19071 50 #
hackdorte@19071 51 # >_ Done
hackdorte@19071 52 #
hackdorte@19071 53 cp -a $src/icon/* $install/usr/share/pixmaps
hackdorte@19071 54 }
hackdorte@19071 55
hackdorte@19071 56 # Rules to gen a SliTaz package suitable for Tazpkg.
hackdorte@19071 57 genpkg_rules()
hackdorte@19071 58 {
hackdorte@19071 59 cp -a $install/* $fs
hackdorte@19071 60 }