blob: 0ffffa3294b2b15bf57707ec342bd7af6339503d (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=meson
pkgver=0.64.0
pkgrel=1
pkgdesc="Fast and user friendly build system"
url="https://mesonbuild.com"
arch="noarch"
license="Apache-2.0"
depends="samurai python3"
makedepends="py3-setuptools"
# glib-dev, gobject-introspection-dev, gtk+3.0-dev is a circular dep,
# but only during bootstrap-
# not installing checkdepends with !check should be fine
options="$options !check" # circular deps above with check on bootstrap
checkdepends="
boost-dev
boost-static
cmake
cups-dev
doxygen
gettext-static
gfortran
glib-dev
gobject-introspection-dev
gtest-dev
gtk+3.0-dev
libpcap-dev
libxml2-dev
linux-headers
llvm-dev
nasm
ncurses-dev
py3-pytest
python3-dev
vala
zlib-dev
zlib-static
"
subpackages="
$pkgname-doc
$pkgname-vim::noarch
$pkgname-bash-completion
$pkgname-zsh-completion
"
source="https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-$pkgver.tar.gz
skip-broken-tests.patch
fix-ninja-output-test.patch
abuild-meson
"
prepare() {
default_prepare
# https://github.com/mesonbuild/meson/issues/10104
rm -r "$builddir/test cases/linuxlike/13 cmake dependency"
}
build() {
python3 setup.py build
}
check() {
MESON_CI_JOBNAME=thirdparty \
NINJA=samu \
NINJA_1_9_OR_NEWER=1 \
python3 run_tests.py
}
package() {
python3 setup.py install --prefix=/usr --root="$pkgdir"
install -Dm644 data/shell-completions/zsh/* -t "$pkgdir"/usr/share/zsh/site-functions
install -Dm644 data/shell-completions/bash/* -t "$pkgdir"/usr/share/bash-completion/completions
install -Dm0755 "$srcdir"/abuild-meson -t "$pkgdir"/usr/bin
}
vim() {
pkgdesc="$pkgdesc (vim support)"
install_if="vim $pkgname=$pkgver-r$pkgrel"
cd "$builddir"
for kind in ftdetect ftplugin indent syntax
do
mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/$kind
install -Dm644 \
"$builddir"/data/syntax-highlighting/vim/$kind/meson.vim \
"$subpkgdir"/usr/share/vim/vimfiles/$kind/meson.vim
done
}
sha512sums="
0656515e983d98350081dc7cd726bff4a83ed1e24d414c022ea804317f2ff86052b53bbbc36e00847541f2cbe19ebe4c87bb35a174bf6321864363512a4cf6b0 meson-0.64.0.tar.gz
0bbbf65f56f4feab43b4ec3fbe7d4c64ef9abb563ea114d0b960048319b936dd577e538a762991661a1cb256f32c0da0fef2d3add07730e37a8bbd4ec27dc611 skip-broken-tests.patch
a60dd85ecc1004523c213f4d06bfe10ba906a5115e93cfa4f1b70733e0c16f39c2c22b38ff71bb07c67166f3121c263a56842e8f8e2022f0a44094f956e28f02 fix-ninja-output-test.patch
5531e31c99e3a202e30148c0f80d13b34428bd72ba4aa89a5e752392027d1f5af38b0201cfc72f9d1198d5db0ceecd00b6b3e308dae665ca860796e690206d01 abuild-meson
"
|