aboutsummaryrefslogtreecommitdiff
path: root/extra/meson
diff options
context:
space:
mode:
Diffstat (limited to 'extra/meson')
-rwxr-xr-xextra/meson/build2
-rw-r--r--extra/meson/checksums4
-rwxr-xr-xextra/meson/files/cl-meson24
-rw-r--r--extra/meson/files/cl-meson.110
-rw-r--r--extra/meson/meta3
-rw-r--r--extra/meson/sources3
-rw-r--r--extra/meson/version2
7 files changed, 45 insertions, 3 deletions
diff --git a/extra/meson/build b/extra/meson/build
index 64c5845a..8c6f3c73 100755
--- a/extra/meson/build
+++ b/extra/meson/build
@@ -8,3 +8,5 @@ python setup.py install \
# Remove polkit directory
rm -rf "$1/usr/share/polkit-1"
+
+clinst -Dm755 cl-meson "$1/usr/bin/cl-meson"
diff --git a/extra/meson/checksums b/extra/meson/checksums
index 114c66b1..06bc3c30 100644
--- a/extra/meson/checksums
+++ b/extra/meson/checksums
@@ -1 +1,3 @@
-78e0f553dd3bc632d5f96ab943b1bbccb599c2c84ff27c5fb7f7fff9c8a3f6b4 0.58.1.tar.gz
+%BLAKE3
+3b051560e94b50b18bcc232b731a416cfd383591aa049c3717020beff863d306 1.2.1.tar.gz
+935ac488caa2a40dc03e9d88ee2e7314c0e330533b6211c9f9cb34d0ba6c81d3 cl-meson
diff --git a/extra/meson/files/cl-meson b/extra/meson/files/cl-meson
new file mode 100755
index 00000000..d822d81a
--- /dev/null
+++ b/extra/meson/files/cl-meson
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+# Wrapper for meson, we disable all auto features by default, and disable
+# any downloads from subproject wrappers. We want the builds to be as
+# reproducible as possible, and we want to be adding features most of the
+# time instead of removing them.
+#
+# Unfortunately, there are lots of people who lack the ability to read the
+# documentation of meson (which is really simple by the way), and declare
+# features as 'combo' type instead of 'feature' type. This means that you
+# shouldn't rely entirely on the '--auto-features=disabled', because those
+# people declare their features as string lists.
+# https://mesonbuild.com/Build-options.html#features
+
+exec meson setup \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libexecdir=lib \
+ --sbindir=bin \
+ --mandir=share/man \
+ --buildtype=release \
+ --auto-features=disabled \
+ --wrap-mode=nodownload \
+ "$@"
diff --git a/extra/meson/files/cl-meson.1 b/extra/meson/files/cl-meson.1
new file mode 100644
index 00000000..bef9b5cc
--- /dev/null
+++ b/extra/meson/files/cl-meson.1
@@ -0,0 +1,10 @@
+.Dd Dec 03, 2022
+.Dt cl-meson 1
+.Sh NAME
+.Nm cl-meson
+.Nd carbs linux wrapper for meson
+.Sh SYNOPSIS
+.Nm
+.Op Ar meson options...
+.Ar sourcedir
+.Ar builddir
diff --git a/extra/meson/meta b/extra/meson/meta
new file mode 100644
index 00000000..9b88fd1e
--- /dev/null
+++ b/extra/meson/meta
@@ -0,0 +1,3 @@
+description: Fast build system
+license: Apache-2.0
+maintainer: Cem Keylan <cem@carbslinux.org>
diff --git a/extra/meson/sources b/extra/meson/sources
index 03d10c5d..54e2c54b 100644
--- a/extra/meson/sources
+++ b/extra/meson/sources
@@ -1 +1,2 @@
-https://github.com/mesonbuild/meson/archive/0.58.1.tar.gz
+https://github.com/mesonbuild/meson/archive/1.2.1.tar.gz
+files/cl-meson
diff --git a/extra/meson/version b/extra/meson/version
index c45a1cb6..cd3d02bc 100644
--- a/extra/meson/version
+++ b/extra/meson/version
@@ -1 +1 @@
-0.58.1 1
+1.2.1 1