# SliTaz package receipt. PACKAGE="web-google-services" VERSION="0.1" CATEGORY="network" SHORT_DESC="Google online services and Google online Office for your desktop." MAINTAINER="hackdorte@sapo.pt" LICENSE="BSD" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://people.slitaz.org/~leonardolaporte" STUFF_DIR="lab.slitaz/5.0/pkg/web/google" WGET_URL="${WEB_SITE}/$STUFF_DIR/$TARBALL" TAGS="cloud google" 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. # # >_ Google Admob # cat > $install/usr/share/applications/web-google-admob.desktop << EOT [Desktop Entry] Type=Application Name=Google Admob Comment=Monetize your apps intelligently. Categories=Network; Icon=web-google-admob TryExec=browser Exec=browser https://www.google.com/admob/ EOT # # >_ Google Adsense # cat > $install/usr/share/applications/web-google-adsense.desktop << EOT [Desktop Entry] Type=Application Name=Google AdSense Comment=Simple way to earn money by placing ads on your website. Categories=Network; Icon=web-google-adsense TryExec=browser Exec=browser https://www.google.com/adsense/ EOT # # >_ Google Adwords # cat > $install/usr/share/applications/web-google-adwords.desktop << EOT [Desktop Entry] Type=Application Name=Google AdWords Comment=Attract more customers, and pay only for results. Categories=Network; Icon=web-google-adwords TryExec=browser Exec=browser https://www.google.com/adwords/ EOT # # >_ Google Apps For Work # cat > $install/usr/share/applications/web-google-apps-work.desktop << EOT [Desktop Entry] Type=Application Name=Google Apps For Work Comment=Custom services for your company. Categories=Network; Icon=web-google-apps-work TryExec=browser Exec=browser https://apps.google.com/ EOT # # >_ Google Business # cat > $install/usr/share/applications/web-google-business.desktop << EOT [Desktop Entry] Type=Application Name=Google Business Comment=Let your company well positioned in Google. Categories=Network; Icon=web-google-business TryExec=browser Exec=browser https://www.google.com/business/ EOT # # >_ Google Developers # cat > $install/usr/share/applications/web-google-developers.desktop << EOT [Desktop Entry] Type=Application Name=Google Developers Comment=Explore APIs, SDKs, Docs, codes and support resources. Categories=Development; Icon=web-google-developers TryExec=browser Exec=browser https://developers.google.com/ EOT # # >_ Google Sites # cat > $install/usr/share/applications/web-google-sites.desktop << EOT [Desktop Entry] Type=Application Name=Google Sites Comment=Create websites and wikis. Categories=Development; Icon=web-google-sites TryExec=browser Exec=browser https://sites.google.com/ EOT # # >_ Google Photos # cat > $install/usr/share/applications/web-google-photos.desktop << EOT [Desktop Entry] Type=Application Name=Google Photos Comment=All your photos are backed up safely. Categories=Graphics; Icon=web-google-photos TryExec=browser Exec=browser https://photos.google.com/ EOT # # >_ Google News # cat > $install/usr/share/applications/web-google-news.desktop << EOT [Desktop Entry] Type=Application Name=Google News Comment=Search the news today. Categories=Network; Icon=web-google-news TryExec=browser Exec=browser https://news.google.com/ EOT # # >_ Google Search # cat > $install/usr/share/applications/web-google-search.desktop << EOT [Desktop Entry] Type=Application Name=Google Search Comment=Search billions of Web pages. Categories=Network; Icon=web-google-search TryExec=browser Exec=browser https://encrypted.google.com/ EOT # # >_ Google Calendar # cat > $install/usr/share/applications/web-google-calendar.desktop << EOT [Desktop Entry] Type=Application Name=Google Calendar Comment=Organize your schedule and share events with your friends. Categories=Office; Icon=web-google-calendar TryExec=browser Exec=browser https://www.google.com/calendar/ EOT # # >_ Google Cloud Print # cat > $install/usr/share/applications/web-google-cloud-print.desktop << EOT [Desktop Entry] Type=Application Name=Google Cloud Print Comment=Print documents and photos on any devices. Categories=Office; Icon=web-google-cloud-print TryExec=browser Exec=browser https://www.google.com/cloudprint/ EOT # # >_ Google Document # cat > $install/usr/share/applications/web-google-document.desktop << EOT [Desktop Entry] Type=Application Name=Google Document Comment=Open, edit and create documents. Categories=Office;WordProcessor; Icon=web-google-documents TryExec=browser Exec=browser https://docs.google.com/document/ EOT # # >_ Google Drawings # cat > $install/usr/share/applications/web-google-drawings.desktop << EOT [Desktop Entry] Type=Application Name=Google Drawings Comment=Create diagrams and flowcharts. Categories=Office; Icon=web-google-drawings TryExec=browser Exec=browser https://docs.google.com/drawings/ EOT # # >_ Google Forms # cat > $install/usr/share/applications/web-google-forms.desktop << EOT [Desktop Entry] Type=Application Name=Google Forms Comment=Open, create and edit forms. Categories=Office; Icon=web-google-forms TryExec=browser Exec=browser https://docs.google.com/forms/ EOT # # >_ Google Keep # cat > $install/usr/share/applications/web-google-keep.desktop << EOT [Desktop Entry] Type=Application Name=Google Keep Comment=Save what you are thinking. Categories=Office; Icon=web-google-keep TryExec=browser Exec=browser https://keep.google.com/ EOT # # >_ Google Presentation # cat > $install/usr/share/applications/web-google-presentation.desktop << EOT [Desktop Entry] Type=Application Name=Google Presentation Comment=Open, create and edit presentations. Categories=Office;Presentation; Icon=web-google-presentation TryExec=browser Exec=browser https://docs.google.com/presentation/ EOT # # >_ Google Sheets # cat > $install/usr/share/applications/web-google-sheets.desktop << EOT [Desktop Entry] Type=Application Name=Google Sheets Comment=Open, edit and create spreadsheets. Categories=Office;Spreadsheet; Icon=web-google-sheets TryExec=browser Exec=browser https://docs.google.com/spreadsheets/ EOT # # >_ Google Academic # cat > $install/usr/share/applications/web-google-academic.desktop << EOT [Desktop Entry] Type=Application Name=Google Academic Comment=Search for scholarly articles. Categories=Education; Icon=web-google-academic TryExec=browser Exec=browser https://scholar.google.com/ EOT # # >_ Google Books # cat > $install/usr/share/applications/web-google-books.desktop << EOT [Desktop Entry] Type=Application Name=Google Books Comment=Search for full texts of books. Categories=Education; Icon=web-google-books TryExec=browser Exec=browser https://books.google.com/ EOT # # >_ Google Blogger # cat > $install/usr/share/applications/web-google-blogger.desktop << EOT [Desktop Entry] Type=Application Name=Google Blogger Comment=Share your life online in a blog. Is fast, easy and free! Categories=Network; Icon=web-google-blogger TryExec=browser Exec=browser https://www.blogger.com/start EOT # # >_ Google Groups # cat > $install/usr/share/applications/web-google-groups.desktop << EOT [Desktop Entry] Type=Application Name=Google Groups Comment=Create email lists and discussion groups. Categories=Network; Icon=web-google-groups TryExec=browser Exec=browser https://groups.google.com/ EOT # # >_ Google Plus # cat > $install/usr/share/applications/web-google-plus.desktop << EOT [Desktop Entry] Type=Application Name=Google Plus Comment=Share your moments to the world. Categories=Network; Icon=web-google-plus TryExec=browser Exec=browser https://plus.google.com/ EOT # # >_ Google Maps # cat > $install/usr/share/applications/web-google-maps.desktop << EOT [Desktop Entry] Type=Application Name=Google Maps Comment=Desktop web mapping service developed by Google. Categories=Graphics;Network; Icon=web-google-maps TryExec=browser Exec=browser https://maps.google.com/ EOT # # >_ Google Panoramio # cat > $install/usr/share/applications/web-google-panoramio.desktop << EOT [Desktop Entry] Type=Application Name=Google Panoramio Comment=Discover the world through photos. Categories=Graphics;Network; Icon=web-google-panoramio TryExec=browser Exec=browser https://www.panoramio.com EOT # # >_ Google Trends # cat > $install/usr/share/applications/web-google-trends.desktop << EOT [Desktop Entry] Type=Application Name=Google Trends Comment=Google Trends is a public web facility of Google Inc. Categories=Network; Icon=web-google-trends TryExec=browser Exec=browser https://www.google.com/trends/ EOT # # >_ Google Youtube Desktop # cat > $install/usr/share/applications/web-google-youtube.desktop << EOT [Desktop Entry] Type=Application Name=YouTube Desktop Comment=YouTube allow discover and share online videos. Categories=AudioVideo;Audio;Video; Icon=web-google-youtube TryExec=browser Exec=browser "https://www.youtube.com/?app=desktop" EOT # # >_ Google Youtube TV # cat > $install/usr/share/applications/web-google-youtube-tv.desktop << EOT [Desktop Entry] Type=Application Name=YouTube TV Comment=Youtube TV (Best viewed with Firefox). Categories=AudioVideo;Audio;Video;Player;TV; Icon=web-google-youtube TryExec=browser Exec=browser "https://www.youtube.com/?app=tv" EOT # # >_ Google Bookmarks # cat > $install/usr/share/applications/web-google-bookmarks.desktop << EOT [Desktop Entry] Type=Application Name=Google Bookmarks Comment=Access your bookmarks on the web. Categories=Network;Utility; Icon=web-google-bookmarks TryExec=browser Exec=browser https://www.google.com.br/bookmarks/ EOT # # >_ Google Translate # cat > $install/usr/share/applications/web-google-translate.desktop << EOT [Desktop Entry] Type=Application Name=Google Translate Comment=Translate texts, web pages and files in 50 languages. Categories=Utility; Icon=web-google-translate TryExec=browser Exec=browser https://translate.google.com/ EOT cp -a $src/icons/* $install/usr/share/pixmaps } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cp -a $install/* $fs } post_install() { [ "$1" ] && notify-send -u normal -t 5000 -i application-x-tazpkg "Tazpkg - Install" "The $PACKAGE is installed." } post_remove() { [ "$1" ] && notify-send -u normal -t 5000 -i application-x-tazpkg "Tazpkg - Remove" "The $PACKAGE was removed." }