summaryrefslogtreecommitdiff
path: root/repo/meson/meson.xibuild
blob: 722b7b80a0a0d3111b7715871eb328ea2b414bd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh

NAME="meson"
DESC="Fast and user friendly build system"

MAKEDEPS="python-setuptools ninja"

PKG_VER=0.63.2
SOURCE="https://github.com/mesonbuild/meson/releases/download/$PKG_VER/meson-$PKG_VER.tar.gz"

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
}

#check() {
	#MESON_CI_JOBNAME=thirdparty \
		#NINJA_1_9_OR_NEWER=1 \
		#python3 run_tests.py
#}

package() {
	python setup.py install --prefix=/usr --root="$PKG_DEST"

    for f in data/shell-completions/zsh/*; do
        install -Dm644 $f "$PKG_DEST"/usr/share/zsh/site-functions
    done

    for f in data/shell-completions/bash/*; do 
        install -Dm644 $f "$PKG_DEST"/usr/share/bash-completion/completions
    done

	install -Dm0755 "$BUILD_ROOT"/meson.py "$PKG_DEST"/usr/bin/meson
}