[arch-commits] Commit in gnome-calendar/repos (3 files)
Jan Steffens
heftig at archlinux.org
Sat Sep 8 02:03:11 UTC 2018
Date: Saturday, September 8, 2018 @ 02:03:11
Author: heftig
Revision: 333905
archrelease: copy trunk to gnome-unstable-x86_64
Added:
gnome-calendar/repos/gnome-unstable-x86_64/
gnome-calendar/repos/gnome-unstable-x86_64/PKGBUILD
(from rev 333904, gnome-calendar/trunk/PKGBUILD)
gnome-calendar/repos/gnome-unstable-x86_64/null-icaltime.diff
(from rev 333904, gnome-calendar/trunk/null-icaltime.diff)
--------------------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
null-icaltime.diff | 14 ++++++++++++++
2 files changed, 59 insertions(+)
Copied: gnome-calendar/repos/gnome-unstable-x86_64/PKGBUILD (from rev 333904, gnome-calendar/trunk/PKGBUILD)
===================================================================
--- gnome-unstable-x86_64/PKGBUILD (rev 0)
+++ gnome-unstable-x86_64/PKGBUILD 2018-09-08 02:03:11 UTC (rev 333905)
@@ -0,0 +1,45 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gnome-calendar
+pkgver=3.30.0
+pkgrel=1
+pkgdesc="Simple and beautiful calendar application designed to perfectly fit the GNOME desktop"
+url="https://wiki.gnome.org/Apps/Calendar"
+arch=(x86_64)
+license=(GPL)
+depends=(evolution-data-server gsettings-desktop-schemas evolution gnome-control-center libdazzle)
+makedepends=(python appstream-glib git meson gtk-doc)
+groups=(gnome)
+_commit=63ed4c48c84291ca70c747d6078090f8263088bf # tags/3.30.0^0
+source=("git+https://gitlab.gnome.org/GNOME/gnome-calendar.git#commit=$_commit"
+ null-icaltime.diff)
+sha256sums=('SKIP'
+ 'c1aa738a4ff275f725d0aa5406312600503b2b59270448a9e6b30b82a924dc27')
+
+pkgver() {
+ cd $pkgname
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgname
+ patch -Np1 -i ../null-icaltime.diff
+}
+
+build() {
+ arch-meson $pkgname build \
+ --buildtype=debugoptimized \
+ -D documentation=true
+ ninja -C build
+}
+
+check() {
+ meson test -C build
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install -C build
+}
+
+# vim:set ts=2 sw=2 et:
Copied: gnome-calendar/repos/gnome-unstable-x86_64/null-icaltime.diff (from rev 333904, gnome-calendar/trunk/null-icaltime.diff)
===================================================================
--- gnome-unstable-x86_64/null-icaltime.diff (rev 0)
+++ gnome-unstable-x86_64/null-icaltime.diff 2018-09-08 02:03:11 UTC (rev 333905)
@@ -0,0 +1,14 @@
+diff --git i/src/gcal-utils.c w/src/gcal-utils.c
+index c7646565..8070034c 100644
+--- i/src/gcal-utils.c
++++ w/src/gcal-utils.c
+@@ -181,6 +181,9 @@ icaltime_to_datetime (const icaltimetype *date)
+ GDateTime *dt;
+ GTimeZone *tz;
+
++ if (!date)
++ return NULL;
++
+ tz = date->zone ? g_time_zone_new (icaltime_get_tzid (*date)) : g_time_zone_new_utc ();
+ dt = g_date_time_new (tz,
+ date->year,
More information about the arch-commits
mailing list