wok-6.x annotate web-whatsapp/receipt @ rev 20274
linux: recook
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 18 21:05:50 2018 +0100 (2018-03-18) |
parents | |
children | 535c806240cc |
rev | line source |
---|---|
hackdorte@19071 | 1 # SliTaz package receipt. |
hackdorte@19071 | 2 |
hackdorte@19071 | 3 PACKAGE="web-whatsapp" |
hackdorte@19071 | 4 VERSION="0.1" |
hackdorte@19071 | 5 CATEGORY="network" |
hackdorte@19071 | 6 SHORT_DESC="Send and receive WhatsApp messages right from your computer." |
hackdorte@19071 | 7 MAINTAINER="hackdorte@sapo.pt" |
hackdorte@19071 | 8 LICENSE="WhatsApp-Inc" |
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 whatsapp" |
hackdorte@19071 | 14 |
hackdorte@19071 | 15 DEPENDS="firefox-official" |
hackdorte@19071 | 16 BUILD_DEPENDS="wget" |
hackdorte@19071 | 17 |
hackdorte@19071 | 18 # Rules to configure and make the package. |
hackdorte@19071 | 19 compile_rules() |
hackdorte@19071 | 20 { |
hackdorte@19071 | 21 |
hackdorte@19071 | 22 # Build Tree. |
hackdorte@19071 | 23 mkdir -p $install/usr/share/applications |
hackdorte@19071 | 24 mkdir -p $install/usr/share/pixmaps |
hackdorte@19071 | 25 |
hackdorte@19071 | 26 # Writing ".desktop" files. |
hackdorte@19071 | 27 # ------------------------- |
hackdorte@19071 | 28 # The icons preserve the 'web-*' name for no future conflicts |
hackdorte@19071 | 29 # with other applications. |
hackdorte@19071 | 30 # |
hackdorte@19071 | 31 # >_ WhatsApp Desktop |
hackdorte@19071 | 32 # |
hackdorte@19071 | 33 cat > $install/usr/share/applications/web-whatsapp.desktop << EOT |
hackdorte@19071 | 34 [Desktop Entry] |
hackdorte@19071 | 35 Type=Application |
hackdorte@19071 | 36 Name=WhatsApp Web |
hackdorte@19071 | 37 Comment=Send and receive WhatsApp messages right from your computer. |
hackdorte@19071 | 38 Categories=Network; |
hackdorte@19071 | 39 Icon=web-whatsapp |
hackdorte@19071 | 40 Exec=firefox-official "https://web.whatsapp.com/" |
hackdorte@19071 | 41 |
hackdorte@19071 | 42 EOT |
hackdorte@19071 | 43 # |
hackdorte@19071 | 44 # >_ Done |
hackdorte@19071 | 45 # |
hackdorte@19071 | 46 cp -a $src/icon/* $install/usr/share/pixmaps |
hackdorte@19071 | 47 } |
hackdorte@19071 | 48 |
hackdorte@19071 | 49 # Rules to gen a SliTaz package suitable for Tazpkg. |
hackdorte@19071 | 50 genpkg_rules() |
hackdorte@19071 | 51 { |
hackdorte@19071 | 52 cp -a $install/* $fs |
hackdorte@19071 | 53 } |