mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
134 lines
3.9 KiB
Bash
134 lines
3.9 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.4.0
|
|
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-tests-Fix-unit-tests-with-high-parallelism.patch
|
|
)
|
|
b2sums=('7f742ef870c182e552c1ff3508d65f251009d610def6a08e01fddb6c6a4ed6d608ead0d52cf8ca7d66b5bd7a4732dccd7ab5d98f141a4a61e275398885f79486'
|
|
'SKIP'
|
|
'8ad24592c1a9100832dead97a55d4cb358892fc1cd6aee641f9610cb6a5df211831e6cfc42e047d5e835ed53de1bb9c7d711dd1a0a8cfe18a0f85e92a1a3f925'
|
|
'6d08a48551e4aa68b05c307dc970e74164ba689b27f7412e39840b5cea7c65addb28e7c0fb46f4a6469b8d1a6dc6b50eb4ea477cb3d25a7f09c49b86015f6052'
|
|
'211cee61f117fd1d582d7a613a8634f044e9e307791c4154c6da72bccd5f06856801b14bcb26157ee682b5935c48ffd2098a5fabab2232726d7758cf091c07f7'
|
|
'9b16477aa77a706492e26fb3ad42e90674b8f0dfe657dd3bd9ba044f921be12ceabeb0050a50a15caee4d999e1ec33ed857bd3bed9e4444d73bb4a4f06381081'
|
|
'7d88929d5a3b49d91c5c9969f19d9b47f3151706526b889515acaeda0141257d5115875ac84832e9ea46f83a7700d673adcc5db84b331cd798c70ae6e90eac1e'
|
|
'b0e050d6cfa7e9cb5692e6aa12185632313536bd4ad59c704cfa2b655ad52e3f34d038da3e2f01d47b16f910db8d458b69f3b2b07bd8d74b92622b00bfc7d120'
|
|
'13bfa022f97745dd072c418c5e77b08b9105e7e357b47ab8634e45dc92a7ceaca0d7483a05b66767d97d9f3ca8e0a67e8015c08b8c466d4a083c15c68e30473f')
|
|
validpgpkeys=(
|
|
19E2D6D9B46D8DAA6288F877C24E631BABB1FE70 # Jussi Pakkanen <jpakkane@gmail.com>
|
|
)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# Pass tests
|
|
patch -Np1 -i ../0001-Skip-broken-tests.patch
|
|
|
|
# https://github.com/mesonbuild/meson/pull/12937
|
|
patch -Np1 -i ../0002-tests-Fix-unit-tests-with-high-parallelism.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:
|