2022-03-20 13:34:07 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2022-05-03 22:34:50 +02:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
2022-03-20 13:34:07 +01:00
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
2022-05-03 22:34:50 +02:00
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:34:07 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=meson
|
2022-09-04 18:38:16 +02:00
|
|
|
pkgver=0.63.2
|
|
|
|
pkgrel=01
|
2022-03-20 13:34:07 +01:00
|
|
|
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'
|
2022-09-04 18:38:16 +02:00
|
|
|
'python-pytest-xdist' 'ldc' 'rust-bindgen' 'cuda' 'hotdoc')
|
2022-03-20 13:34:07 +01:00
|
|
|
source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc}
|
2022-05-03 22:34:50 +02:00
|
|
|
0001-Skip-broken-tests.patch
|
2022-08-18 13:28:53 +02:00
|
|
|
0002-compilers-Add-optimization-plain-option.patch
|
2022-09-04 18:38:16 +02:00
|
|
|
0003-Add-missing-cdata-update-in-genmarshal-tests.patch
|
2022-03-20 13:34:07 +01:00
|
|
|
arch-meson
|
|
|
|
jobo-meson)
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
|
|
|
|
## Arch: Our containers do not allow sanitizers to run
|
2022-05-03 22:34:50 +02:00
|
|
|
patch -Np1 -i ../0001-Skip-broken-tests.patch
|
2022-08-18 13:28:53 +02:00
|
|
|
|
|
|
|
# Fix buildtype plain to not add -O0
|
|
|
|
# https://github.com/mesonbuild/meson/pull/10593
|
|
|
|
patch -Np1 -i ../0002-compilers-Add-optimization-plain-option.patch
|
2022-09-04 18:38:16 +02:00
|
|
|
|
|
|
|
# Fix flaky test
|
|
|
|
# https://github.com/mesonbuild/meson/pull/10772
|
|
|
|
patch -Np1 -i ../0003-Add-missing-cdata-update-in-genmarshal-tests.patch
|
2022-03-20 13:34:07 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${pkgname}-${pkgver}
|
|
|
|
python setup.py build
|
|
|
|
}
|
|
|
|
|
2022-06-03 19:34:00 +02:00
|
|
|
#check() (
|
|
|
|
# cd ${pkgname}-${pkgver}
|
|
|
|
# export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
|
2022-09-04 18:38:16 +02:00
|
|
|
# ./run_tests.py --failfast
|
2022-06-03 19:34:00 +02:00
|
|
|
#)
|
2022-09-04 18:38:16 +02:00
|
|
|
#FAILED run_unittests.py::AllPlatformTests::test_testsetups - AssertionError: 'TEST_ENV is set' not found in...
|
|
|
|
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
#!!!!!!!!!!!!!!!!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
|
|
#====================== 1 failed, 128 passed, 19 skipped, 9 warnings in 63.16s (0:01:03) ======================
|
|
|
|
#Total time: 63.498 seconds
|
|
|
|
#==> ERROR: A failure occurred in check().
|
2022-03-20 13:34:07 +01:00
|
|
|
|
|
|
|
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/*
|
2022-03-22 02:45:27 +01:00
|
|
|
# install -Dt "${pkgdir}/usr/share/emacs/site-lisp" -m644 data/syntax-highlighting/emacs/*
|
2022-03-20 13:34:07 +01:00
|
|
|
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 <jpakkane@gmail.com>
|
|
|
|
|
2022-09-04 18:38:16 +02:00
|
|
|
sha256sums=(16222f17ef76be0542c91c07994f9676ae879f46fc21c0c786a21ef2cb518bbf # meson-0.63.2.tar.gz
|
|
|
|
842b9765b9fdbbb12a9075fcbcf801bf730efd2f87dd9c6a8dbb6b250ba0a173 # meson-0.63.2.tar.gz.asc
|
2022-08-14 19:09:20 +02:00
|
|
|
30e8970fb5ef37a47930a1e5156ab25625d55ea4df1a4149804579a1aa22202f # 0001-Skip-broken-tests.patch
|
2022-09-04 18:38:16 +02:00
|
|
|
b3bf9f775ad4e71de47d8badef3739a0b46a8e9ea3701d3a11f31e92eef5f5d6 # 0002-compilers-Add-optimization-plain-option.patch
|
|
|
|
7f029cf562d5109eacc068afabd7bf021429dbb25fa9ce9eecf63054d7f1adc5 # 0003-Add-missing-cdata-update-in-genmarshal-tests.patch
|
2022-03-20 13:34:07 +01:00
|
|
|
ac3387ed5759cc512b1f2a4e5b3dd940274b02f943a7e5d644792ee714e6b95e # arch-meson
|
|
|
|
b2aeae2787cf8f3ffb8778ee7f1a434895b1512bc0bdb33528c4cb2aeb067904) # jobo-meson
|
2022-08-14 19:09:20 +02:00
|
|
|
|