aboutsummaryrefslogtreecommitdiff
path: root/extra/meson
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2021-09-09 12:32:58 +0300
committerCem Keylan <cem@ckyln.com>2021-09-09 12:36:18 +0300
commit1df428e6057e7532e1cb3d4daafcd19c60d06429 (patch)
treec6dc3bf44a4da4da253280885adce4c9136a68c9 /extra/meson
parent410c461aecd9dd72430b81d798e5117aa5d9b96f (diff)
downloadrepository-1df428e6057e7532e1cb3d4daafcd19c60d06429.tar.gz
meson: add cl-meson wrapper
Diffstat (limited to 'extra/meson')
-rwxr-xr-xextra/meson/build2
-rw-r--r--extra/meson/checksums1
-rwxr-xr-xextra/meson/files/cl-meson15
-rw-r--r--extra/meson/sources1
-rw-r--r--extra/meson/version2
5 files changed, 20 insertions, 1 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 c0960260..84b30c52 100644
--- a/extra/meson/checksums
+++ b/extra/meson/checksums
@@ -1,2 +1,3 @@
%BLAKE3
0e059fa8f293cd5ce5c5efcd330788c1a60c40f987efd2ae4ae89cc5dfd8a1ae 0.59.1.tar.gz
+936ab83bfe944d93132dc0f0ddb07d0e95aabe9d06f2a58e241b627e1eeaceb6 cl-meson
diff --git a/extra/meson/files/cl-meson b/extra/meson/files/cl-meson
new file mode 100755
index 00000000..b3cebd85
--- /dev/null
+++ b/extra/meson/files/cl-meson
@@ -0,0 +1,15 @@
+#!/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.
+
+exec meson setup \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --libexecdir=lib \
+ --sbindir=bin \
+ --buildtype=release \
+ --auto-features=disabled \
+ --wrap-mode=nodownload \
+ "$@"
diff --git a/extra/meson/sources b/extra/meson/sources
index eb82b02a..59e407d8 100644
--- a/extra/meson/sources
+++ b/extra/meson/sources
@@ -1 +1,2 @@
https://github.com/mesonbuild/meson/archive/0.59.1.tar.gz
+files/cl-meson
diff --git a/extra/meson/version b/extra/meson/version
index 05565202..20638688 100644
--- a/extra/meson/version
+++ b/extra/meson/version
@@ -1 +1 @@
-0.59.1 1
+0.59.1 2