New package: io.elementary.calendar-4.2.3
This commit is contained in:
parent
929d40eaee
commit
2948786ddb
|
@ -3317,3 +3317,4 @@ libunarr.so.1 libunarr-1.0.1_1
|
|||
libretro-gtk-0.14.so.0 retro-gtk-0.16.0_1
|
||||
libmanette-0.2.so.0 libmanette-0.2.1_1
|
||||
libfmt.so.5 fmt-5.2.1_1
|
||||
libelementary-calendar.so.0 libio.elementary.calendar-4.2.3_1
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
diff --git core/Model/CalendarModel.vala core/Model/CalendarModel.vala
|
||||
index 3e3b8cbd..b33f75f8 100644
|
||||
--- core/Model/CalendarModel.vala
|
||||
+++ core/Model/CalendarModel.vala
|
||||
@@ -68,7 +68,11 @@ public class Maya.Model.CalendarModel : Object {
|
||||
}
|
||||
|
||||
private CalendarModel () {
|
||||
+#if HAVE_NL_TIME_FIRST_WEEKDAY
|
||||
int week_start = Posix.NLTime.FIRST_WEEKDAY.to_string ().data[0];
|
||||
+#else
|
||||
+ int week_start = 0;
|
||||
+#endif
|
||||
if (week_start >= 1 && week_start <= 7) {
|
||||
week_starts_on = (Maya.Settings.Weekday)week_start-1;
|
||||
}
|
||||
diff --git meson.build meson.build
|
||||
index 1f83be6d..480706a1 100644
|
||||
--- meson.build
|
||||
+++ meson.build
|
||||
@@ -31,13 +31,18 @@ folks_dep = dependency('folks')
|
||||
geocode_glib_dep = dependency('geocode-glib-1.0')
|
||||
gclue_dep = dependency('libgeoclue-2.0')
|
||||
|
||||
-m_dep = meson.get_compiler('c').find_library('m', required : false)
|
||||
+cc = meson.get_compiler('c')
|
||||
+m_dep = cc.find_library('m', required : false)
|
||||
libnotify_dep = dependency('libnotify', required: false)
|
||||
|
||||
if libnotify_dep.found()
|
||||
add_project_arguments('--define=HAVE_LIBNOTIFY', language: 'vala')
|
||||
endif
|
||||
|
||||
+if cc.has_header_symbol('langinfo.h', '_NL_TIME_FIRST_WEEKDAY')
|
||||
+ add_project_arguments('--define=HAVE_NL_TIME_FIRST_WEEKDAY', language: 'vala')
|
||||
+endif
|
||||
+
|
||||
gresource_calendar = gnome.compile_resources(
|
||||
'gresource_calendar',
|
||||
'data/maya.gresource.xml',
|
|
@ -0,0 +1,35 @@
|
|||
# Template file for 'io.elementary.calendar'
|
||||
pkgname=io.elementary.calendar
|
||||
version=4.2.3
|
||||
revision=1
|
||||
wrksrc="calendar-${version}"
|
||||
build_style=meson
|
||||
hostmakedepends="intltool pkg-config vala desktop-file-utils AppStream"
|
||||
makedepends="granite-devel libglib-devel gtk+3-devel libgee08-devel
|
||||
libchamplain-devel clutter-devel evolution-data-server-devel
|
||||
folks-devel geocode-glib-devel geoclue2-devel libical-devel libnotify-devel"
|
||||
maintainer="Cameron Nemo <camerontnorman@gmail.com>"
|
||||
short_desc="Desktop calendar app designed for elementary OS"
|
||||
homepage="https://github.com/elementary/calendar"
|
||||
license="GPL-3.0-only"
|
||||
distfiles="${homepage}/archive/${version}.tar.gz"
|
||||
checksum=4f36334ec9402bb59998816fd1849be9e8eb6a3ee96df292efe79d322ee3aa09
|
||||
|
||||
libio.elementary.calendar_package() {
|
||||
short_desc+=" - library"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/*.so.*"
|
||||
}
|
||||
}
|
||||
|
||||
libio.elementary.calendar-devel_package() {
|
||||
short_desc+=" - library development files"
|
||||
depends="libio.elementary.calendar>=${version} evolution-data-server-devel
|
||||
granite-devel gtk+3-devel libglib-devel libical-devel libsoup-devel"
|
||||
pkg_install() {
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove usr/include
|
||||
vmove usr/share/vala
|
||||
}
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
io.elementary.calendar
|
|
@ -0,0 +1 @@
|
|||
io.elementary.calendar
|
Loading…
Reference in New Issue