Group: Applications
Source0: https://git.sr.ht/~kennylevinsen/seatd/archive/%{version}.tar.gz
# Source0-md5: 264a36907f4be34efa400fb6e1b26f5f
+Patch0: x32.patch
URL: https://git.sr.ht/~kennylevinsen/seatd
BuildRequires: meson >= 0.56.0
BuildRequires: ninja
%prep
%setup -q
+%patch0 -p1
%build
%meson build \
--- /dev/null
+--- seatd-0.5.0/common/log.c.orig 2021-06-24 17:22:50.385736148 +0000
++++ seatd-0.5.0/common/log.c 2021-06-24 17:24:59.695067141 +0000
+@@ -56,7 +56,11 @@
+ postfix = "\n";
+ }
+
++#if defined(__x86_64__) && defined(__ILP32__)
++ fprintf(stderr, "%02d:%02d:%02d.%03lld %s ", (int)(ts.tv_sec / 60 / 60),
++#else
+ fprintf(stderr, "%02d:%02d:%02d.%03ld %s ", (int)(ts.tv_sec / 60 / 60),
++#endif
+ (int)(ts.tv_sec / 60 % 60), (int)(ts.tv_sec % 60), ts.tv_nsec / 1000000, prefix);
+
+ vfprintf(stderr, fmt, args);