From f68dfa42543faab878f58562d9cf5a03db10fba3 Mon Sep 17 00:00:00 2001 From: Erik Reider <35975961+ErikReider@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:16:46 +0100 Subject: [PATCH] Require vala >= 0.56 --- build-scripts/PKGBUILD | 2 +- build-scripts/PKGBUILD-git | 2 +- build-scripts/swaync.rpkg.spec | 2 +- src/meson.build | 2 ++ 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/build-scripts/PKGBUILD b/build-scripts/PKGBUILD index 909a2d5..f57dc0f 100644 --- a/build-scripts/PKGBUILD +++ b/build-scripts/PKGBUILD @@ -15,7 +15,7 @@ license=(GPL3) depends=("gtk3" "gtk-layer-shell" "dbus" "glib2" "gobject-introspection" "libgee" "json-glib" "libhandy" "libpulse" "gvfs" "libnotify") conflicts=("swaync" "swaync-client") provides=("swaync" "swaync-client" "notification-daemon") -makedepends=(vala meson git scdoc sassc) +makedepends=("vala>=0.56" meson git scdoc sassc) source=("${_pkgfoldername}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") sha256sums=('3f00bc858b7b3610e88ef0f6ee64d727892dd82f280f1dfc01dde863c2ea3376') diff --git a/build-scripts/PKGBUILD-git b/build-scripts/PKGBUILD-git index 7253b1e..ddd0927 100644 --- a/build-scripts/PKGBUILD-git +++ b/build-scripts/PKGBUILD-git @@ -15,7 +15,7 @@ license=('GPL3') depends=("gtk3" "gtk-layer-shell" "dbus" "glib2" "gobject-introspection" "libgee" "json-glib" "libhandy" "libpulse" "gvfs" "libnotify") conflicts=("swaync" "swaync-client") provides=("swaync" "swaync-client" "notification-daemon") -makedepends=(vala meson git scdoc sassc) +makedepends=("vala>=0.56" meson git scdoc sassc) source=("$_pkgname::git+$url") sha256sums=('SKIP') diff --git a/build-scripts/swaync.rpkg.spec b/build-scripts/swaync.rpkg.spec index 3dc41b7..4a1df44 100644 --- a/build-scripts/swaync.rpkg.spec +++ b/build-scripts/swaync.rpkg.spec @@ -14,7 +14,7 @@ VCS: {{{ git_dir_vcs }}} Source: {{{ git_dir_pack }}} BuildRequires: meson >= 0.51.0 -BuildRequires: vala +BuildRequires: vala >= 0.56 BuildRequires: scdoc BuildRequires: pkgconfig(gtk+-3.0) >= 3.22 BuildRequires: pkgconfig(gtk-layer-shell-0) >= 0.1 diff --git a/src/meson.build b/src/meson.build index ebf9051..8bc0a7b 100644 --- a/src/meson.build +++ b/src/meson.build @@ -67,6 +67,8 @@ app_sources = [ constants, ] +assert(meson.get_compiler('vala').version() >= '0.56') + app_deps = [ dependency('gio-2.0', version: '>= 2.50'), dependency('gio-unix-2.0', version: '>= 2.50'),