PKGBUILDs/extra/meson/PKGBUILD
2023-10-20 17:04:41 -04:00

132 lines
3.8 KiB
Bash

# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - disable lto in arch-meson
pkgname=meson
pkgver=1.2.3
pkgrel=1
pkgdesc="High productivity build system"
url="https://mesonbuild.com/"
arch=(any)
license=(Apache)
depends=(
ninja
python-tqdm
python-typing_extensions
)
makedepends=(
python-build
python-installer
python-setuptools
python-wheel
)
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
arch-meson
cross-lib32
native-clang
0001-Skip-broken-tests.patch
0002-Use-C-17-for-protobuf-tests.patch
)
b2sums=('7d76c54bddba249ab97ebd5dd0afc448177ff9fa70812a8ca0cc9fe308c9b145b3fbc3ee068acae0fdc73edff42134b7a0b618cd80a05347a424aca7bc8bbef8'
'SKIP'
'e08aca9bb2f72276f43d52ae254a39216ba2e1fa7568d929ec9286aa341c995b207c9f82e2bcbe9f1de656d38ac7c7bbb3d97ae54aa294e341d39d2e521b842a'
'a60fdc7d2fedfdd505338369d75c89dc07ae35bd563d0f3aecaed60b25982c8a9874f29e331a135363be6c145833bc0edf32ef3c2b89a563cd25906509eb86e7'
'211cee61f117fd1d582d7a613a8634f044e9e307791c4154c6da72bccd5f06856801b14bcb26157ee682b5935c48ffd2098a5fabab2232726d7758cf091c07f7'
'e56c75dd9122d866e8a92381f1f8a3fa268451d13a18b73906c0089601d3e6edf28602b36f40d8a32758e9958a167a1bdccd70283581e19b2ed39863640daf95'
'7d88929d5a3b49d91c5c9969f19d9b47f3151706526b889515acaeda0141257d5115875ac84832e9ea46f83a7700d673adcc5db84b331cd798c70ae6e90eac1e'
'e178221d00456dcfd5b04d2df7c23a9d19108e210f834fa42350dbdc5f90206a0143178fe6e8b145ac28cd1c335b5dacac8ea408f3bf5f51aa46d46a5e77505a'
'c0154434fefb00aebb66b276c3b871b9ec629adc8f3c5b020a21b4662667c0bdaa2c48c6a7498d0c7ab901bb9c3911bd0bb82fbae5e5f3ae2da006e3849e0ff0')
validpgpkeys=(
19E2D6D9B46D8DAA6288F877C24E631BABB1FE70 # Jussi Pakkanen <jpakkane@gmail.com>
)
prepare() {
cd $pkgname-$pkgver
# Pass tests
patch -Np1 -i ../0001-Skip-broken-tests.patch
patch -Np1 -i ../0002-Use-C-17-for-protobuf-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"
install -Dm644 ../cross-lib32 "$pkgdir/usr/share/meson/cross/lib32"
install -Dm644 ../native-clang "$pkgdir/usr/share/meson/native/clang"
}
# vim:set sw=2 sts=-1 et: