2020-08-16 18:25:49 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2017-10-12 01:37:43 +00:00
|
|
|
# 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
|
2022-12-23 21:14:10 +00:00
|
|
|
# - add makedepend on python-setuptools
|
2017-10-12 01:37:43 +00:00
|
|
|
|
|
|
|
pkgname=meson
|
2023-02-25 14:12:39 +00:00
|
|
|
pkgver=1.0.1
|
|
|
|
pkgrel=1
|
2022-12-23 21:14:10 +00:00
|
|
|
pkgdesc="High productivity build system"
|
|
|
|
url="https://mesonbuild.com/"
|
|
|
|
arch=(any)
|
|
|
|
license=(Apache)
|
2022-12-24 04:07:57 +00:00
|
|
|
depends=(ninja python)
|
2022-12-23 21:14:10 +00:00
|
|
|
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
|
|
|
|
)
|
2023-02-25 14:12:39 +00:00
|
|
|
sha512sums=('3d2e2630f9eacf2fd999d5068d82b2a719400a55cfdea5d38253410a3ee74def638ac09622bceb72edf7bc867ae3de6a5f48c1846601e7e4b5afdf3ac9339ebc'
|
2021-10-31 22:31:01 +00:00
|
|
|
'SKIP'
|
2023-02-25 14:12:39 +00:00
|
|
|
'1d8e9786be7b642e0f232749c9504703d9a10e23fa35ceee0da152ebf7c1c07e912d332293f982c46af20895203af4e2a569f895da59faa76cb3e18c7fa6c299'
|
|
|
|
'4580ddc03465f22bc32c27c764740e8ed67203dadc3cf7a61982231c2f60cdcdec9e26114ccefd0d36165adf46aa5b6fc88d6f770cc9f797a8dd1b5e85c09d5c'
|
2022-12-23 21:14:10 +00:00
|
|
|
'30558210317307e720fd4d5d360c15882c5c756aad7b26036bc5875a0599312a711df174a87f29d528181ec88e9d48b2ee82456cf23109907c7ba4b4dcc5c238'
|
2019-02-06 00:29:20 +00:00
|
|
|
'278f5e4de3aa1170d9b4f9f212985d664f44d90ffec727febeeea1ed570046c6469558a5d123a41bf4c2fdf99dbe7832515b06f1ace423c63e2e95ba6d0ef235')
|
2021-01-06 14:52:10 +00:00
|
|
|
validpgpkeys=('19E2D6D9B46D8DAA6288F877C24E631BABB1FE70') # Jussi Pakkanen <jpakkane@gmail.com>
|
2017-10-12 01:37:43 +00:00
|
|
|
|
|
|
|
prepare() {
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
2022-04-14 17:46:59 +00:00
|
|
|
patch -Np1 -i ../0001-Skip-broken-tests.patch
|
2017-10-12 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
|
|
|
python -m build --wheel --no-isolation
|
2017-10-12 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
2018-01-28 14:35:46 +00:00
|
|
|
check() (
|
2022-12-23 21:14:10 +00:00
|
|
|
cd $pkgname-$pkgver
|
2019-04-19 23:56:19 +00:00
|
|
|
export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
|
2022-09-04 01:26:21 +00:00
|
|
|
./run_tests.py --failfast
|
2018-01-28 14:35:46 +00:00
|
|
|
)
|
2017-10-12 01:37:43 +00:00
|
|
|
|
|
|
|
package() {
|
2022-12-23 21:14:10 +00:00
|
|
|
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/*/
|
2017-12-10 20:06:18 +00:00
|
|
|
|
2022-12-23 21:14:10 +00:00
|
|
|
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"
|
2018-03-06 22:26:27 +00:00
|
|
|
|
2022-12-23 21:14:10 +00:00
|
|
|
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"
|
2017-10-12 01:37:43 +00:00
|
|
|
|
2022-12-23 21:14:10 +00:00
|
|
|
install -D ../arch-meson -t "$pkgdir/usr/bin"
|
2017-10-12 01:37:43 +00:00
|
|
|
}
|
|
|
|
|
2022-08-13 16:07:32 +00:00
|
|
|
# vim:set sw=2 sts=-1 et:
|