From 12cb5c2c382284d3d6b32854394d470197ee9407 Mon Sep 17 00:00:00 2001 From: Leo C Date: Mon, 19 Dec 2016 06:45:41 +0700 Subject: desktop/gis-weather: Added (weather widget). Signed-off-by: Willy Sudiarto Raharjo --- desktop/gis-weather/README | 5 ++ desktop/gis-weather/doinst.sh | 3 + desktop/gis-weather/gis-weather.SlackBuild | 89 ++++++++++++++++++++++++++++++ desktop/gis-weather/gis-weather.info | 10 ++++ desktop/gis-weather/slack-desc | 20 +++++++ 5 files changed, 127 insertions(+) create mode 100644 desktop/gis-weather/README create mode 100644 desktop/gis-weather/doinst.sh create mode 100644 desktop/gis-weather/gis-weather.SlackBuild create mode 100644 desktop/gis-weather/gis-weather.info create mode 100644 desktop/gis-weather/slack-desc (limited to 'desktop') diff --git a/desktop/gis-weather/README b/desktop/gis-weather/README new file mode 100644 index 0000000000..33eeabb969 --- /dev/null +++ b/desktop/gis-weather/README @@ -0,0 +1,5 @@ +gis-weather is a customizable weather widget with many features, which +supports 4 different service providers: accuweather.com, gismeteo.com, +openweathermap.org and yr.no + +Note: for best display results, X compositing should be enabled. diff --git a/desktop/gis-weather/doinst.sh b/desktop/gis-weather/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/desktop/gis-weather/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/desktop/gis-weather/gis-weather.SlackBuild b/desktop/gis-weather/gis-weather.SlackBuild new file mode 100644 index 0000000000..98e83bfd40 --- /dev/null +++ b/desktop/gis-weather/gis-weather.SlackBuild @@ -0,0 +1,89 @@ +#!/bin/sh + +# Slackware build script for gis-weather + +# Copyright 2016 Leonardo Citrolo, Italy +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=gis-weather +VERSION=${VERSION:-0.8.2.5} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +mkdir -p $PKG/usr/bin +cat > $PKG/usr/bin/$PRGNAM < $PKG/usr/share/applications/$PRGNAM.desktop < $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/desktop/gis-weather/gis-weather.info b/desktop/gis-weather/gis-weather.info new file mode 100644 index 0000000000..2886f8db34 --- /dev/null +++ b/desktop/gis-weather/gis-weather.info @@ -0,0 +1,10 @@ +PRGNAM="gis-weather" +VERSION="0.8.2.5" +HOMEPAGE="https://gis-weather.sourceforge.io/" +DOWNLOAD="http://downloads.sourceforge.net/gis-weather/gis-weather-0.8.2.5.tar.gz" +MD5SUM="6e934ec5b24850f3250c2f887e166ffd" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="pygobject3-python3" +MAINTAINER="Leo C." +EMAIL="leoc@gmx.com" diff --git a/desktop/gis-weather/slack-desc b/desktop/gis-weather/slack-desc new file mode 100644 index 0000000000..1b91379685 --- /dev/null +++ b/desktop/gis-weather/slack-desc @@ -0,0 +1,20 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +gis-weather: gis-weather (weather widget) +gis-weather: +gis-weather: A customizable weather widget with many features, supports 4 service +gis-weather: providers: accuweather.com, gismeteo.com, openweathermap.org, yr.no +gis-weather: +gis-weather: +gis-weather: +gis-weather: +gis-weather: +gis-weather: +gis-weather: Homepage: https://gis-weather.sourceforge.io/ +gis-weather: -- cgit v1.2.3