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
|
|
|
|
|
|
|
|
pkgname=meson
|
2023-06-03 18:53:41 +00:00
|
|
|
pkgver=1.1.1
|
2023-02-25 14:12:39 +00:00
|
|
|
pkgrel=1
|
2022-12-23 21:14:10 +00:00
|
|
|
pkgdesc="High productivity build system"
|
|
|
|
url="https://mesonbuild.com/"
|
|
|
|
arch=(any)
|
|
|
|
license=(Apache)
|
2023-05-03 23:30:10 +00:00
|
|
|
depends=(
|
|
|
|
ninja
|
|
|
|
python-tqdm
|
|
|
|
python-typing_extensions
|
|
|
|
)
|
2022-12-23 21:14:10 +00:00
|
|
|
makedepends=(
|
|
|
|
python-build
|
|
|
|
python-installer
|
|
|
|
python-setuptools
|
2023-05-03 23:30:10 +00:00
|
|
|
python-wheel
|
2022-12-23 21:14:10 +00:00
|
|
|
)
|
|
|
|
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-06-03 18:53:41 +00:00
|
|
|
b2sums=('295b46d19c8a1d64d326a6c826e2abe11d9768902ed2f8816df18677e7f3f58decc0c660925821825ecd9a4955a65bda8b2aa66a7bb1961810d8f78f92a3fd8a'
|
2023-05-03 23:30:10 +00:00
|
|
|
'SKIP'
|
2023-06-03 18:53:41 +00:00
|
|
|
'667fa519da08ffbb6befe7fce3db7e3df44bc722c0c7b679fd4369f59afa20a886cea2ed0d3d2c7d7973696e9a57d61c66f0b3a9cfb6e881ceb5f7ee7a26175c'
|
|
|
|
'4661d7b9643eec3d73af156f8401cadfcc6798e966fbd1bb40b5f87e3a72297e27259a9fa1d32f54806fe16fd129ed142910d30661e7c9a33f666ff7261b5e1d'
|
2023-05-03 23:30:10 +00:00
|
|
|
'742e2c16c6c464e939f68ec7f58951836a75a0fc0170ada25826e7dbc7191bd289f66bfe683941a5ff98d102fd54aeda2c407e9d2ab4276cf607a82ab948093b'
|
|
|
|
'801ad7689aabd2861c760d6001ce2e84c3d5aaed867b087bc1699e7c15d914ee26c9d855999f389d28b4765f081523a1468755768bc0163185f132e157ecced1')
|
|
|
|
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:
|