# Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Levente Polyak # Contributor: Anatol Pomozov # ALARM: Kevin Mihelich # - disable lto in arch-meson # - add makedepend on python-setuptools pkgname=meson pkgver=1.0.0 pkgrel=2 pkgdesc="High productivity build system" url="https://mesonbuild.com/" arch=(any) license=(Apache) depends=(ninja python) makedepends=( python-build python-installer python-wheel python-setuptools ) checkdepends=( boost clang cmake cuda cython doxygen gcc-fortran gcc-objc git 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 0001-Skip-broken-tests.patch arch-meson ) sha512sums=('9b1195cfe856c1aa51bc79f6eb4d0f94925bb02d0a9fbd68a6a6ced6e5c252b09b22d9aac812640687e49b8d64a313ce48d0a69a3bf83ea8ffb8c9dab559fc23' 'SKIP' 'e756e3249e34d119b81403d1c36abbc63ee77db019b16742ebcc89689c177868e3684ae682a058c4bd7c6207d88694445f9e2f2c778f1365fe505e64186394ea' '16099033f4eda0acd3cb2f5785717b493e1b64c50a66012161a10cbcc22e941a38b04124bc2d9622221850226e5407d4e050074d0237a0012dba869bd66af00d' '30558210317307e720fd4d5d360c15882c5c756aad7b26036bc5875a0599312a711df174a87f29d528181ec88e9d48b2ee82456cf23109907c7ba4b4dcc5c238' '278f5e4de3aa1170d9b4f9f212985d664f44d90ffec727febeeea1ed570046c6469558a5d123a41bf4c2fdf99dbe7832515b06f1ace423c63e2e95ba6d0ef235') validpgpkeys=('19E2D6D9B46D8DAA6288F877C24E631BABB1FE70') # Jussi Pakkanen prepare() { cd $pkgname-$pkgver patch -Np1 -i ../0001-Skip-broken-tests.patch } build() { cd $pkgname-$pkgver python -m build --wheel --no-isolation } check() ( cd $pkgname-$pkgver export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS= ./run_tests.py --failfast ) package() { 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/*/ 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" 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" install -D ../arch-meson -t "$pkgdir/usr/bin" } # vim:set sw=2 sts=-1 et: