# Maintainer: Jan Alexander Steffens (heftig) # Maintainer: Levente Polyak # Contributor: Anatol Pomozov # ALARM: Kevin Mihelich # - disable lto in arch-meson # - remove checkdepend on dmd pkgname=meson pkgver=0.50.1 pkgrel=2 pkgdesc='High productivity build system' url='https://mesonbuild.com/' arch=('any') license=('Apache') depends=('python-setuptools' 'ninja') checkdepends=('gcc-objc' 'vala' 'rust' 'gcc-fortran' 'mono' 'boost' 'qt5-base' 'git' 'cython' 'gtkmm3' 'gtest' 'gmock' 'protobuf' 'wxgtk' 'python-gobject' 'gobject-introspection' 'itstool' 'gtk3' 'java-environment=8' 'gtk-doc' 'llvm' 'clang' 'sdl2' 'graphviz' 'doxygen' 'vulkan-validation-layers' 'openssh' 'mercurial' 'gtk-sharp-2' 'qt5-tools' 'libwmf' 'valgrind' 'cmake' 'netcdf-fortran' 'openmpi' 'cuda' 'ldc' 'nasm' 'gnustep-base' 'libelf') source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc} 0001-Fix-failing-85-gtest-dependency-with-version-test-to.patch arch-meson) sha512sums=('1e3dda7684e999b408a34b4b594f0b7d22494328dc0e98ec794625f16d821f2ef96303ffc761a52249e3919b52befe9fc02577dbd52e50f4b16e6c0f79ba2fca' 'SKIP' '41e305af419076077d3e47e57c9aa3757bf4936cb5533976fc7b06e3c09c3750f355290b14d47f37b6c7b3a403f6d0ddbf67203092441b485481a9adb7ea671e' '278f5e4de3aa1170d9b4f9f212985d664f44d90ffec727febeeea1ed570046c6469558a5d123a41bf4c2fdf99dbe7832515b06f1ace423c63e2e95ba6d0ef235') validpgpkeys=('95181F4EED14FDF4E41B518D3BF4693BFEEB9428') # Jussi Pakkanen prepare() { cd ${pkgname}-${pkgver} # Fix expected-fail test to actually fail patch -Np1 -i ../0001-Fix-failing-85-gtest-dependency-with-version-test-to.patch } build() { cd ${pkgname}-${pkgver} python setup.py build } check() ( cd ${pkgname}-${pkgver} # set for debug output #export MESON_PRINT_TEST_OUTPUT=1 export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS= ./run_tests.py ) package() { cd ${pkgname}-${pkgver} python setup.py install --root="${pkgdir}" --optimize=1 --skip-build install -d "${pkgdir}/usr/share/vim/vimfiles" cp -rt "${pkgdir}/usr/share/vim/vimfiles" data/syntax-highlighting/vim/*/ install -Dt "${pkgdir}/usr/share/emacs/site-lisp" -m644 data/syntax-highlighting/emacs/* install -Dt "${pkgdir}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/* # Arch packaging helper install -D ../arch-meson -t "${pkgdir}/usr/bin" } # vim: ts=2 sw=2 et: