44 lines
1.4 KiB
Bash
44 lines
1.4 KiB
Bash
# Template file for 'meson'
|
|
pkgname=meson
|
|
version=1.3.0
|
|
revision=1
|
|
build_style=python3-module
|
|
hostmakedepends="python3-devel python3-setuptools"
|
|
depends="ninja python3-setuptools"
|
|
checkdepends="glib-devel gobject-introspection ninja
|
|
gcc-objc++ clang qt5-devel qt6-tools cmake llvm git pkg-config vala
|
|
python3-devel cross-arm-linux-gnueabihf"
|
|
short_desc="Super fast build system"
|
|
maintainer="Michal Vasilek <michal@vasilek.cz>"
|
|
license="Apache-2.0"
|
|
homepage="https://mesonbuild.com"
|
|
changelog="https://raw.githubusercontent.com/mesonbuild/meson/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
|
|
distfiles="https://github.com/mesonbuild/meson/releases/download/${version}/meson-${version}.tar.gz"
|
|
checksum=4ba253ef60e454e23234696119cbafa082a0aead0bd3bbf6991295054795f5dc
|
|
|
|
# XXX: sanitizers aren't available on musl
|
|
if [ "$XBPS_TARGET_LIBC" = glibc ]; then
|
|
checkdepends+=" libsanitizer-devel"
|
|
fi
|
|
|
|
post_patch() {
|
|
if [ "$XBPS_TARGET_LIBC" = musl ]; then
|
|
vsed -e 's/test_pch_with_address_sanitizer/_&/' \
|
|
-i unittests/linuxliketests.py
|
|
fi
|
|
}
|
|
|
|
do_check() {
|
|
# meson depends on trillion of things to perform actual tests
|
|
# see checkdepends=() on arch
|
|
( CC=gcc ./run_unittests.py )
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/share/vim/vimfiles
|
|
cp -rt ${DESTDIR}/usr/share/vim/vimfiles data/syntax-highlighting/vim/*/
|
|
|
|
vcompletion data/shell-completions/bash/meson bash
|
|
vcompletion data/shell-completions/zsh/_meson zsh
|
|
}
|