wok rev 25805 tip
created recipe for xfce4-weather-plugin
author | Hans-G?nter Theisgen |
---|---|
date | Wed Nov 13 15:24:31 2024 +0100 (9 days ago) |
parents | 6cf6658948a5 |
children | |
files | xfce4-weather-plugin-lang/receipt xfce4-weather-plugin/description.txt xfce4-weather-plugin/receipt xfce4-weather-plugin/stuff/patches/weather.c-0.8.11 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/xfce4-weather-plugin-lang/receipt Wed Nov 13 15:24:31 2024 +0100 1.3 @@ -0,0 +1,17 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="xfce4-weather-plugin-lang" 1.7 +VERSION="0.8.11" 1.8 +CATEGORY="localization" 1.9 +SHORT_DESC="Weather plugin for the Xfce4 panel - localised messages." 1.10 +MAINTAINER="maintainer@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/start" 1.13 + 1.14 +WANTED="xfce4-weather-plugin" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + cook_copy_folders locale 1.20 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/xfce4-weather-plugin/description.txt Wed Nov 13 15:24:31 2024 +0100 2.3 @@ -0,0 +1,2 @@ 2.4 +This xfce panel plugin shows information about local weather in the panel, 2.5 +using forecast data provided by met.no.
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/xfce4-weather-plugin/receipt Wed Nov 13 15:24:31 2024 +0100 3.3 @@ -0,0 +1,47 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="xfce4-weather-plugin" 3.7 +VERSION="0.8.11" 3.8 + CATEGORY="x-window" 3.9 +SHORT_DESC="Weather plugin for the Xfce4 panel." 3.10 +MAINTAINER="maintainer@slitaz.org" 3.11 +LICENSE="GPL2" 3.12 +WEB_SITE="https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/start" 3.13 + 3.14 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 3.15 +WGET_URL="https://archive.xfce.org/src/panel-plugins/$PACKAGE/${VERSION%.*}/$TARBALL" 3.16 + 3.17 +SUGGESTED="xfce4-weather-plugin-lang" 3.18 +DEPENDS="gdk-pixbuf gtk+ libsoup libxfcegui4 xfce4-panel" 3.19 +BUILD_DEPENDS="file gdk-pixbuf-dev gtk+-dev libsoup-dev libxfcegui4-dev 3.20 + libxfce4ui-dev pkg-config sqlite-dev startup-notification-dev 3.21 + xcb-util-dev xfce4-panel-dev" 3.22 + 3.23 +# What is the latest version available today? 3.24 +current_version() 3.25 +{ 3.26 + wget -O - $WEB_SITE 2>/dev/null | 3.27 + sed '/released/!d;s| released.*||;s|.*-plugin ||' 3.28 +} 3.29 + 3.30 +# Rules to configure and make the package. 3.31 +compile_rules() 3.32 +{ 3.33 + # new API versions required 3.34 + patch --strip=0 --input=$stuff/patches/weather.c-0.8.11 && 3.35 + 3.36 + ./configure \ 3.37 + --prefix=/usr \ 3.38 + --enable-nls \ 3.39 + --enable-static=no && 3.40 + make && 3.41 + make install 3.42 +} 3.43 + 3.44 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.45 +genpkg_rules() 3.46 +{ 3.47 + cook_copy_files *.desktop 3.48 + cook_copy_files *.so* 3.49 + cook_copy_folders icons 3.50 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/xfce4-weather-plugin/stuff/patches/weather.c-0.8.11 Wed Nov 13 15:24:31 2024 +0100 4.3 @@ -0,0 +1,22 @@ 4.4 +--- panel-plugin/weather.c.original 4.5 ++++ panel-plugin/weather.c 4.6 +@@ -634,7 +634,7 @@ 4.7 + 4.8 + /* build url */ 4.9 + url = g_strdup_printf("https://api.met.no/weatherapi" 4.10 +- "/sunrise/2.0/?lat=%s&lon=%s&" 4.11 ++ "/sunrise/3.0/?lat=%s&lon=%s&" 4.12 + "date=%04d-%02d-%02d&" 4.13 + "offset=%s&days=%u", 4.14 + data->lat, data->lon, 4.15 +@@ -660,8 +660,8 @@ 4.16 + 4.17 + /* build url */ 4.18 + url = g_strdup_printf("https://api.met.no/weatherapi" 4.19 +- "/locationforecastlts/1.3/?lat=%s&lon=%s&" 4.20 +- "msl=%d", 4.21 ++ "/locationforecast/2.0/classic?lat=%s&lon=%s&" 4.22 ++ "altitude=%d", 4.23 + data->lat, data->lon, data->msl); 4.24 + 4.25 + /* start receive thread */