void-packages/srcpkgs/meson/template
2020-03-31 16:01:20 +02:00

32 lines
1.1 KiB
Bash

# Template file for 'meson'
pkgname=meson
version=0.54.0
revision=1
archs=noarch
build_style=python3-module
hostmakedepends="python3-devel python3-setuptools"
depends="ninja python3-setuptools"
checkdepends="glib-devel gobject-introspection libsanitizer-devel ninja
pkg-config vala python-devel"
short_desc="Super fast build system"
maintainer="John <johnz@posteo.net>"
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=dde5726d778112acbd4a67bb3633ab2ee75d33d1e879a6283a7b4a44c3363c27
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/*/
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
}