2020-08-16 18:25:49 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2017-10-12 01:37:43 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - disable lto in arch-meson
|
|
|
|
|
|
|
|
pkgname=meson
|
2024-05-31 02:18:18 +00:00
|
|
|
pkgver=1.4.1
|
|
|
|
pkgrel=1
|
2022-12-23 21:14:10 +00:00
|
|
|
pkgdesc="High productivity build system"
|
|
|
|
url="https://mesonbuild.com/"
|
|
|
|
arch=(any)
|
2024-04-27 15:39:19 +00:00
|
|
|
license=(Apache-2.0)
|
2023-05-03 23:30:10 +00:00
|
|
|
depends=(
|
|
|
|
ninja
|
2024-04-27 15:39:19 +00:00
|
|
|
python
|
2023-05-03 23:30:10 +00:00
|
|
|
python-tqdm
|
|
|
|
)
|
2022-12-23 21:14:10 +00:00
|
|
|
makedepends=(
|
|
|
|
python-build
|
|
|
|
python-installer
|
|
|
|
python-setuptools
|
2023-05-03 23:30:10 +00:00
|
|
|
python-wheel
|
2022-12-23 21:14:10 +00:00
|
|
|
)
|
|
|
|
checkdepends=(
|
|
|
|
boost
|
|
|
|
clang
|
|
|
|
cmake
|
|
|
|
cuda
|
|
|
|
cython
|
|
|
|
doxygen
|
|
|
|
gcc-fortran
|
|
|
|
gcc-objc
|
|
|
|
git
|
2024-05-31 02:18:18 +00:00
|
|
|
glibc-locales
|
2022-12-23 21:14:10 +00:00
|
|
|
gmock
|
|
|
|
gnustep-base
|
|
|
|
gobject-introspection
|
|
|
|
graphviz
|
|
|
|
gtest
|
|
|
|
gtk-doc
|
|
|
|
gtk-sharp-2
|
|
|
|
gtk3
|
|
|
|
gtkmm3
|
|
|
|
hotdoc
|
|
|
|
itstool
|
|
|
|
java-environment=8
|
|
|
|
ldc
|
|
|
|
libelf
|
|
|
|
libwmf
|
|
|
|
llvm
|
|
|
|
mercurial
|
|
|
|
mono
|
|
|
|
nasm
|
|
|
|
netcdf-fortran
|
|
|
|
openmpi
|
|
|
|
openssh
|
|
|
|
protobuf
|
|
|
|
python-gobject
|
|
|
|
python-pytest-xdist
|
|
|
|
qt5-base
|
|
|
|
qt5-tools
|
|
|
|
rust
|
|
|
|
rust-bindgen
|
|
|
|
sdl2
|
|
|
|
vala
|
|
|
|
valgrind
|
|
|
|
vulkan-validation-layers
|
|
|
|
wxgtk3
|
|
|
|
)
|
|
|
|
source=(
|
|
|
|
https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-$pkgver.tar.gz{,.asc}
|
|
|
|
meson-reference-$pkgver.3::https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-reference.3
|
|
|
|
meson-reference-$pkgver.json::https://github.com/mesonbuild/meson/releases/download/$pkgver/reference_manual.json
|
|
|
|
arch-meson
|
2023-07-30 02:41:59 +00:00
|
|
|
cross-lib32
|
|
|
|
native-clang
|
2023-07-17 01:33:00 +00:00
|
|
|
0001-Skip-broken-tests.patch
|
2024-05-31 02:18:18 +00:00
|
|
|
0002-cuda-avoid-test-failure-without-GPU-available.patch
|
2022-12-23 21:14:10 +00:00
|
|
|
)
|
2024-05-31 02:18:18 +00:00
|
|
|
b2sums=('1eb83ad34d9e0a80eaf667a5edf04cf40ff043c0b9e8c78c5bd553eb2dae372b4c0dc8e30760da0321b7c33d331304c21c7f51d2133681c9fa66d551039952f3'
|
2023-05-03 23:30:10 +00:00
|
|
|
'SKIP'
|
2024-05-31 02:18:18 +00:00
|
|
|
'a0ea6a1dd599c0a559dae64772f730ac7cad7df3ea63acc8355ff933152873567803efff012e6ea0a4c75ef9c8be023a8d927411a49e43de20bbfc69b1263488'
|
|
|
|
'f44fdcb30d576e1f94d184963a379745c7ff8561622151f2ecd2c03de854bc2c9b4e1162c34dc8c6a367f16c7307044691f7e43076725bce66c979e4f4a5ce5f'
|
|
|
|
'70f042a7603d1139f6cef33aec028da087cacabe278fd47375e1b2315befbfde1c0501ad1ecc63d04d31b232a04f08c735d61ce59d7244521f3d270e417fb5af'
|
2023-12-20 04:36:56 +00:00
|
|
|
'9b16477aa77a706492e26fb3ad42e90674b8f0dfe657dd3bd9ba044f921be12ceabeb0050a50a15caee4d999e1ec33ed857bd3bed9e4444d73bb4a4f06381081'
|
2023-07-30 02:41:59 +00:00
|
|
|
'7d88929d5a3b49d91c5c9969f19d9b47f3151706526b889515acaeda0141257d5115875ac84832e9ea46f83a7700d673adcc5db84b331cd798c70ae6e90eac1e'
|
2024-05-31 02:18:18 +00:00
|
|
|
'ba31657ec0362795c95ada7a3d903f34aa04effe2594cc8b7731f8de1d5407350855bc438b8d79cae45726283f22be5e8dbf18fc7a119f410e4a110441d4f79b'
|
|
|
|
'0318ef99fbb9e268496e75e6ec584b65fb961dc5b4b37b43f14485ebfce197688f5d9f434ec028011a2c7b720581e346075905520d10863e1b36a65d18de0289')
|
2023-05-03 23:30:10 +00:00
|
|
|
validpgpkeys=(
|
|
|
|
19E2D6D9B46D8DAA6288F877C24E631BABB1FE70 # Jussi Pakkanen <jpakkane@gmail.com>
|
|
|
|
)
|
2017-10-12 01:37:43 +00:00
|
|
|
|
|
|
|
prepare() {
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
2023-10-04 23:29:35 +00:00
|
|
|
|
|
|
|
# Pass tests
|
2022-04-14 17:46:59 +00:00
|
|
|
patch -Np1 -i ../0001-Skip-broken-tests.patch
|
2024-03-13 00:53:08 +00:00
|
|
|
|
2024-05-31 02:18:18 +00:00
|
|
|
# https://github.com/mesonbuild/meson/issues/13269
|
|
|
|
# https://github.com/mesonbuild/meson/pull/13273
|
|
|
|
patch -Np1 -i ../0002-cuda-avoid-test-failure-without-GPU-available.patch
|
2017-10-12 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
python -m build --wheel --no-isolation
|
2017-10-12 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
2018-01-28 14:35:46 +00:00
|
|
|
check() (
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
2019-04-19 23:56:19 +00:00
|
|
|
export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
|
2022-09-04 01:26:21 +00:00
|
|
|
./run_tests.py --failfast
|
2018-01-28 14:35:46 +00:00
|
|
|
)
|
2017-10-12 01:37:43 +00:00
|
|
|
|
|
|
|
package() {
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
|
|
|
|
install -d "$pkgdir/usr/share/vim/vimfiles"
|
|
|
|
cp -rt "$pkgdir/usr/share/vim/vimfiles" data/syntax-highlighting/vim/*/
|
2017-12-10 20:06:18 +00:00
|
|
|
|
2022-12-23 21:14:10 +00:00
|
|
|
install -Dm644 data/shell-completions/bash/* -t "$pkgdir/usr/share/bash-completion/completions"
|
|
|
|
install -Dm644 data/shell-completions/zsh/* -t "$pkgdir/usr/share/zsh/site-functions"
|
2018-03-06 22:26:27 +00:00
|
|
|
|
2022-12-23 21:14:10 +00:00
|
|
|
install -Dm644 ../meson-reference-$pkgver.3 "$pkgdir/usr/share/man/man3/meson-reference.3"
|
|
|
|
install -Dm644 ../meson-reference-$pkgver.json "$pkgdir/usr/share/doc/$pkgname/reference_manual.json"
|
2017-10-12 01:37:43 +00:00
|
|
|
|
2022-12-23 21:14:10 +00:00
|
|
|
install -D ../arch-meson -t "$pkgdir/usr/bin"
|
2023-07-30 02:41:59 +00:00
|
|
|
|
|
|
|
install -Dm644 ../cross-lib32 "$pkgdir/usr/share/meson/cross/lib32"
|
|
|
|
install -Dm644 ../native-clang "$pkgdir/usr/share/meson/native/clang"
|
2017-10-12 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
2022-08-13 16:07:32 +00:00
|
|
|
# vim:set sw=2 sts=-1 et:
|