summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeo C <leoc@gmx.com>2016-12-19 06:45:41 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2016-12-24 07:33:34 +0700
commit12cb5c2c382284d3d6b32854394d470197ee9407 (patch)
tree91126171735ec6f0e23d8729b4ff68f5f2ddbff9
parentfc202df9fc27c18a225194e2e00c0908b54d3ea5 (diff)
downloadslackbuilds-12cb5c2c382284d3d6b32854394d470197ee9407.tar.gz
desktop/gis-weather: Added (weather widget).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--desktop/gis-weather/README5
-rw-r--r--desktop/gis-weather/doinst.sh3
-rw-r--r--desktop/gis-weather/gis-weather.SlackBuild89
-rw-r--r--desktop/gis-weather/gis-weather.info10
-rw-r--r--desktop/gis-weather/slack-desc20
5 files changed, 127 insertions, 0 deletions
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 <<EOF
+#!/bin/sh
+
+exec python3 /usr/share/gis-weather/gis-weather.py "\$@"
+
+EOF
+chmod 755 $PKG/usr/bin/$PRGNAM
+
+mkdir -p $PKG/usr/share/applications
+cat > $PKG/usr/share/applications/$PRGNAM.desktop <<EOF
+[Desktop Entry]
+Name=Gis Weather
+Comment=Weather widget
+Categories=GNOME;Utility;
+Exec=/usr/bin/gis-weather
+Icon=gis-weather
+Terminal=false
+Type=Application
+EOF
+
+mkdir -p $PKG/usr/share/$PRGNAM
+cp -a dialogs i18n services themes utils gis-weather.py icon.png \
+ $PKG/usr/share/$PRGNAM
+
+mkdir -p $PKG/usr/share/pixmaps
+cp -a icon.png $PKG/usr/share/pixmaps/gis-weather.png
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a README.md $PKG/usr/doc/$PRGNAM-$VERSION
+cat $CWD/$PRGNAM.SlackBuild > $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: