From c943829ac7b25ac6326f78fe947a5d79c283627b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= Date: Tue, 31 Dec 2024 14:36:26 +0800 Subject: [PATCH] gnu: xfce4-weather-plugin: Switch to git source. * gnu/packages/xfce.scm (xfce4-weather-plugin)[source]: Switch to git-fetch. [native-inputs]: Add xfce4-dev-tools. [arguments]: Add "--enable-maintainer-mode" to configure-flags. [home-page]: Set to docs.xfce.org. Change-Id: I72bcdab8f58401347a2993172f07237082e0e80a --- gnu/packages/xfce.scm | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/gnu/packages/xfce.scm b/gnu/packages/xfce.scm index d05c63be98efb57f066d2544f4e5cd2cfed5c18c..2f6041cc9bff20de046f12a97596b398cc1975b2 100644 --- a/gnu/packages/xfce.scm +++ b/gnu/packages/xfce.scm @@ -2280,24 +2280,27 @@ lan interface (signal state, signal quality, network name (SSID)).") (define-public xfce4-weather-plugin (package - (name "xfce4-weather-plugin") - (version "0.11.3") - (source (origin - (method url-fetch) - (uri (string-append "https://archive.xfce.org/src/panel-plugins/" - "xfce4-weather-plugin/" - (version-major+minor version) - "/xfce4-weather-plugin-" version ".tar.bz2")) - (sha256 - (base32 - "0mywq00xs0rvdp3kd7kmcv2brpzixz65ijzk2ahg7lh677k1yb80")))) + (name "xfce4-weather-plugin") + (version "0.11.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url (string-append "https://gitlab.xfce.org/panel-plugins/" + name)) + (commit (string-append name "-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1cxv5p1472vgy2nks9145m8yajsxrc1a83pmqpmnmvpyyandbdml")))) (build-system gnu-build-system) + (arguments + (list #:configure-flags + #~(list "--enable-maintainer-mode"))) ;for weather-config_ui.h (native-inputs - (list intltool pkg-config)) + (list xfce4-dev-tools)) (inputs (list gtk+ json-c libsoup-minimal-2 libxfce4ui libxml2 xfce4-panel)) - (home-page - "https://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin") + (home-page "https://docs.xfce.org/panel-plugins/xfce4-weather-plugin/") (synopsis "Show information about local weather in the Xfce panel") (description "This Xfce panel plugin shows information about your local weather in the panel, using forecast data provided by the