gnu: gcal: Update to 4.2.0.

* gnu/packages/gcal.scm (gcal): Update to 4.2.0.
[argument]<#:configure-flags>: Add "-lm".
[native-inputs]: Add pkg-config and check.

Change-Id: Ia67f66b604ab428c8cbe546c47bbcdf7a52dd8de
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Andy Tai 2025-09-21 14:48:29 -07:00 committed by Ludovic Courtès
parent abc35bae81
commit f2c9dabec8
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -1,5 +1,6 @@
;;; GNU Guix --- Functional package management for GNU ;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2013, 2018 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2013, 2018 Ludovic Courtès <ludo@gnu.org>
;;; Copyright © 2025 Andy Tai <atai@atai.org>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -20,19 +21,22 @@
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix licenses)) #:use-module (guix licenses)
#:use-module (gnu packages check)
#:use-module (gnu packages pkg-config))
(define-public gcal (define-public gcal
(package (package
(name "gcal") (name "gcal")
(version "4.1") (version "4.2.0")
(source (origin (source (origin
(method url-fetch) (method url-fetch)
(uri (string-append "mirror://gnu/gcal/gcal-" (uri (string-append "https://www.alteholz.dev/gnu/gcal-"
version ".tar.xz")) version ".tar.xz"))
(sha256 (sha256
(base32 (base32
"1av11zkfirbixn05hyq4xvilin0ncddfjqzc4zd9pviyp506rdci")) "1p3q6his31bxs24nsgpfavw3nlhalqf0zak4f3b530p725s2vgfq"))
(modules '((guix build utils))) (modules '((guix build utils)))
(snippet (snippet
'(begin '(begin
@ -50,6 +54,8 @@
"/* BSD stdio derived implementations"))) "/* BSD stdio derived implementations")))
#t)))) #t))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (list check pkg-config))
(arguments `(#:configure-flags '("LDFLAGS=-lm")))
(home-page "https://www.gnu.org/software/gcal/") (home-page "https://www.gnu.org/software/gcal/")
(synopsis "Calculating and printing a wide variety of calendars") (synopsis "Calculating and printing a wide variety of calendars")
(description (description