#!/usr/bin/bash # JOBoRun : Jwm OpenBox Obarun RUNit # Maintainer : Joe Bo Run # PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname" # Website : https://pozol.eu #-----------------------------------------| DESCRIPTION |--------------------------------------- pkgname=meson pkgver=0.62.1 pkgrel=01 pkgdesc='High productivity build system' url='https://mesonbuild.com/' arch=('any') depends=('python-setuptools' 'ninja') checkdepends=('gcc-objc' 'vala' 'rust' 'gcc-fortran' 'mono' 'boost' 'qt5-base' 'git' 'cython' 'gtkmm3' 'gtest' 'gmock' 'protobuf' 'wxgtk3' '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' 'nasm' 'gnustep-base' 'libelf' 'python-pytest-xdist' 'python2-setuptools' 'ldc' 'rust-bindgen' 'cuda' 'hotdoc') source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc} 0001-Skip-broken-tests.patch arch-meson jobo-meson) prepare() { cd ${pkgname}-${pkgver} ## Arch: Our containers do not allow sanitizers to run patch -Np1 -i ../0001-Skip-broken-tests.patch } build() { cd ${pkgname}-${pkgver} python setup.py build } check() ( cd ${pkgname}-${pkgver} 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/bash-completion/completions" -m644 data/shell-completions/bash/* # 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" # joborun-pkg packaging helper install -D ../jobo-meson -t "${pkgdir}/usr/bin" } #---- license gpg-key sha256sums ---- license=('Apache') validpgpkeys=('19E2D6D9B46D8DAA6288F877C24E631BABB1FE70') # Jussi Pakkanen sha256sums=(a0f5caa1e70da12d5e63aa6a9504273759b891af36c8d87de381a4ed1380e845 # meson-0.62.1.tar.gz 6e0693c606a72ebe777f6e9f1a5c95c89cf7a43d3786a58455e1faab82ef7555 # meson-0.62.1.tar.gz.asc 2c705c917c1690bda95962858b73e118c3be22a825765845cddcbdf26b960820 # 0001-Skip-broken-tests.patch ac3387ed5759cc512b1f2a4e5b3dd940274b02f943a7e5d644792ee714e6b95e # arch-meson b2aeae2787cf8f3ffb8778ee7f1a434895b1512bc0bdb33528c4cb2aeb067904) # jobo-meson