# HG changeset patch # User Hans-G?nter Theisgen # Date 1731507871 -3600 # Node ID 6ef924cbceb14685aba1cc0738f53383c8df89a8 # Parent 6cf6658948a5baaa77c4d8d0231ceb67022f5405 created recipe for xfce4-weather-plugin diff -r 6cf6658948a5 -r 6ef924cbceb1 xfce4-weather-plugin-lang/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce4-weather-plugin-lang/receipt Wed Nov 13 15:24:31 2024 +0100 @@ -0,0 +1,17 @@ +# SliTaz package receipt. + +PACKAGE="xfce4-weather-plugin-lang" +VERSION="0.8.11" +CATEGORY="localization" +SHORT_DESC="Weather plugin for the Xfce4 panel - localised messages." +MAINTAINER="maintainer@slitaz.org" +LICENSE="GPL2" +WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/start" + +WANTED="xfce4-weather-plugin" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_folders locale +} diff -r 6cf6658948a5 -r 6ef924cbceb1 xfce4-weather-plugin/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce4-weather-plugin/description.txt Wed Nov 13 15:24:31 2024 +0100 @@ -0,0 +1,2 @@ +This xfce panel plugin shows information about local weather in the panel, +using forecast data provided by met.no. diff -r 6cf6658948a5 -r 6ef924cbceb1 xfce4-weather-plugin/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce4-weather-plugin/receipt Wed Nov 13 15:24:31 2024 +0100 @@ -0,0 +1,47 @@ +# SliTaz package receipt. + +PACKAGE="xfce4-weather-plugin" +VERSION="0.8.11" + CATEGORY="x-window" +SHORT_DESC="Weather plugin for the Xfce4 panel." +MAINTAINER="maintainer@slitaz.org" +LICENSE="GPL2" +WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/start" + +TARBALL="$PACKAGE-$VERSION.tar.bz2" +WGET_URL="https://archive.xfce.org/src/panel-plugins/$PACKAGE/${VERSION%.*}/$TARBALL" + +SUGGESTED="xfce4-weather-plugin-lang" +DEPENDS="gdk-pixbuf gtk+ libsoup libxfcegui4 xfce4-panel" +BUILD_DEPENDS="file gdk-pixbuf-dev gtk+-dev libsoup-dev libxfcegui4-dev + libxfce4ui-dev pkg-config sqlite-dev startup-notification-dev + xcb-util-dev xfce4-panel-dev" + +# What is the latest version available today? +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | + sed '/released/!d;s| released.*||;s|.*-plugin ||' +} + +# Rules to configure and make the package. +compile_rules() +{ + # new API versions required + patch --strip=0 --input=$stuff/patches/weather.c-0.8.11 && + + ./configure \ + --prefix=/usr \ + --enable-nls \ + --enable-static=no && + make && + make install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + cook_copy_files *.desktop + cook_copy_files *.so* + cook_copy_folders icons +} diff -r 6cf6658948a5 -r 6ef924cbceb1 xfce4-weather-plugin/stuff/patches/weather.c-0.8.11 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xfce4-weather-plugin/stuff/patches/weather.c-0.8.11 Wed Nov 13 15:24:31 2024 +0100 @@ -0,0 +1,22 @@ +--- panel-plugin/weather.c.original ++++ panel-plugin/weather.c +@@ -634,7 +634,7 @@ + + /* build url */ + url = g_strdup_printf("https://api.met.no/weatherapi" +- "/sunrise/2.0/?lat=%s&lon=%s&" ++ "/sunrise/3.0/?lat=%s&lon=%s&" + "date=%04d-%02d-%02d&" + "offset=%s&days=%u", + data->lat, data->lon, +@@ -660,8 +660,8 @@ + + /* build url */ + url = g_strdup_printf("https://api.met.no/weatherapi" +- "/locationforecastlts/1.3/?lat=%s&lon=%s&" +- "msl=%d", ++ "/locationforecast/2.0/classic?lat=%s&lon=%s&" ++ "altitude=%d", + data->lat, data->lon, data->msl); + + /* start receive thread */