40 lines
1.4 KiB
Bash
40 lines
1.4 KiB
Bash
# Template file for 'meson'
|
|
pkgname=meson
|
|
version=0.55.3
|
|
revision=3
|
|
build_style=python3-module
|
|
hostmakedepends="python3-devel python3-setuptools"
|
|
depends="ninja python3-setuptools"
|
|
checkdepends="glib-devel gobject-introspection libsanitizer-devel ninja
|
|
gcc-objc++ clang qt5-devel cmake llvm git pkg-config vala python-devel
|
|
cross-arm-linux-gnueabihf"
|
|
short_desc="Super fast build system"
|
|
maintainer="John <me@johnnynator.dev>"
|
|
license="Apache-2.0"
|
|
homepage="https://mesonbuild.com"
|
|
changelog="https://github.com/mesonbuild/$pkgname/blob/master/docs/markdown/Release-notes-for-${version%.*}.0.md"
|
|
distfiles="https://github.com/mesonbuild/$pkgname/releases/download/$version/$pkgname-$version.tar.gz"
|
|
checksum=6bed2a25a128bbabe97cf40f63165ebe800e4fcb46db8ab7ef5c2b5789f092a5
|
|
|
|
do_check() {
|
|
# meson depends on trillion of things to perform actual tests
|
|
# see checkdepends=() on arch
|
|
# 1 test still fails
|
|
( CC=gcc ./run_unittests.py )
|
|
}
|
|
|
|
post_install() {
|
|
vmkdir usr/share/vim/vimfiles
|
|
cp -rt ${DESTDIR}/usr/share/vim/vimfiles data/syntax-highlighting/vim/*/
|
|
|
|
for dir in ftdetect ftplugin indent syntax; do
|
|
nvim_runtime_dir="usr/share/nvim/runtime/$dir"
|
|
vmkdir $nvim_runtime_dir
|
|
|
|
ln -sf /usr/share/vim/vimfiles/$dir/meson.vim ${DESTDIR}/$nvim_runtime_dir
|
|
done
|
|
|
|
vinstall data/syntax-highlighting/emacs/meson.el 644 usr/share/emacs/site-lisp
|
|
vinstall data/shell-completions/zsh/_meson 644 usr/share/zsh/site-functions
|
|
}
|