summaryrefslogtreecommitdiff
path: root/repo/meson
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-09-28 12:49:10 +0100
committerdavidovski <david@davidovski.xyz>2022-09-28 12:49:10 +0100
commitaa4e27bf4f1a27e219b6c6c78a481bd417eac0a7 (patch)
tree746e34a1e7395a5b6944a39b52f7a29c625edcd5 /repo/meson
parent1d77b08d11a459598975cd73a1c9539849c0d815 (diff)
Fixed packages for next release
Diffstat (limited to 'repo/meson')
-rw-r--r--repo/meson/meson.xibuild45
1 files changed, 33 insertions, 12 deletions
diff --git a/repo/meson/meson.xibuild b/repo/meson/meson.xibuild
index a642b07..b3dfcf4 100644
--- a/repo/meson/meson.xibuild
+++ b/repo/meson/meson.xibuild
@@ -1,21 +1,42 @@
#!/bin/sh
-MAKEDEPS="python"
-DEPS="python ninja"
+NAME="meson"
+DESC="Fast and user friendly build system"
-PKG_VER=0.59
-SOURCE=https://github.com/mesonbuild/meson.git
-BRANCH=$PKG_VER
+MAKEDEPS="python-setuptools"
-DESC="High productivity build system"
+PKG_VER=0.63.2
+SOURCE="https://github.com/mesonbuild/meson/releases/download/$PKG_VER/meson-$PKG_VER.tar.gz"
-build () {
- python setup.py build
+ADDITIONAL="
+fix-ninja-output-test.patch
+skip-broken-tests.patch
+"
+
+prepare() {
+ apply_patches
+
+ # https://github.com/mesonbuild/meson/issues/10104
+ rm -r "$BUILD_ROOT/test cases/linuxlike/13 cmake dependency"
+}
+
+build() {
+ python setup.py build
}
-package () {
- python setup.py install --root=$PKG_DEST
+check() {
+ MESON_CI_JOBNAME=thirdparty \
+ NINJA=samu \
+ NINJA_1_9_OR_NEWER=1 \
+ python3 run_tests.py
+}
+
+package() {
+ python setup.py install --prefix=/usr --root="$PKG_DEST"
+
+ install -Dm644 data/shell-completions/zsh/* -t "$PKG_DEST"/usr/share/zsh/site-functions
+ install -Dm644 data/shell-completions/bash/* -t "$PKG_DEST"/usr/share/bash-completion/completions
- install -Dm644 data/shell-completions/bash/meson $PKG_DEST/usr/share/bash-completion/completions/meson
- install -Dm644 data/shell-completions/zsh/_meson $PKG_DEST/usr/share/zsh/site-functions/_meson
+ install -Dm0755 "$BUILD_ROOT"/meson --prefix=/usr \
+ -t "$PKG_DEST"/usr/bin
}