jobextra/meson/PKGBUILD

107 lines
4.7 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=meson
pkgver=1.1.0
pkgrel=01
pkgdesc='High productivity build system'
url='https://mesonbuild.com/'
depends=(ninja python python-typing_extensions)
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
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 -m build --wheel --no-isolation
}
#
#check() (
# cd $pkgname-$pkgver
# export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
# ./run_tests.py --failfast
#)
#
#========================================== short test summary info ===========================================
#FAILED run_unittests.py::AllPlatformTests::test_testsetups - AssertionError: 'TEST_ENV is set' not found in "Log of Meson test suite run on 2022-12-25T01:12:12.907961...
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!!!!!!!!!!!!!!!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!
#===================== 1 failed, 409 passed, 65 skipped, 13 warnings in 154.65s (0:02:34) =====================
#Total time: 155.019 seconds
#
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"
# Arch packaging helper
install -D ../arch-meson -t "$pkgdir/usr/bin"
# joborun-pkg packaging helper
install -D ../jobo-meson -t "$pkgdir/usr/bin"
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('Apache')
validpgpkeys=('19E2D6D9B46D8DAA6288F877C24E631BABB1FE70') # Jussi Pakkanen <jpakkane@gmail.com>
b2sums=('149dedc0e49b72682fa053f27f9a6c2543362539861b4b79ce65ecf4d913e221ac2d63f3b9aa350bd7622851c73be418b804ae1131dd27607eb01218e0204a5e'
'SKIP'
'6f8ec9ccee50e8e33c8c289bae0f33887dc998b5753c373afddc050fa2561172f34ec573f701ed1c5c1715fabcaec2daf5d1979709546816a3813396f34178d5'
'afc89e9f7c8c0af12ab86c7030c17d045eb1b0758ea813d86fc88f83963795a6a9abe9a45e11829f15f5c7daf49fcc0238c31881060d16e2a0e93197f9215e1d'
'742e2c16c6c464e939f68ec7f58951836a75a0fc0170ada25826e7dbc7191bd289f66bfe683941a5ff98d102fd54aeda2c407e9d2ab4276cf607a82ab948093b'
'801ad7689aabd2861c760d6001ce2e84c3d5aaed867b087bc1699e7c15d914ee26c9d855999f389d28b4765f081523a1468755768bc0163185f132e157ecced1'
SKIP)
sha256sums=(d9616c44cd6c53689ff8f05fc6958a693f2e17c3472a8daf83cee55dabff829f # meson-1.1.0.tar.gz
249d65fcf3034bb189502f302ebfbcf794c4713a2bafe853b0f535fece92a58c # meson-1.1.0.tar.gz.asc
6e52aaf29ba4d11ff7f0d058fedf4a2f49b332f152525c7792f1e45fd6a3bb08 # meson-reference-1.1.0.3
d5e74f56495b3a8e265cdf58532a29d42bfcbe6a610c468ea952eeb0a7df1bc6 # meson-reference-1.1.0.json
c45ca77d56d086264b330d08f9b4705fe194f7d929db144819e1cfbe4eb1869a # 0001-Skip-broken-tests.patch
ac3387ed5759cc512b1f2a4e5b3dd940274b02f943a7e5d644792ee714e6b95e # arch-meson
b2aeae2787cf8f3ffb8778ee7f1a434895b1512bc0bdb33528c4cb2aeb067904) # jobo-meson
## 8e6c710e646e4ac84ce8b78dd03dce8d1492b3c1aec773b99d3fbed53de8ed6d meson-1.1.0-01-x86_64.pkg.tar.lz