# Contributor: Sören Tempel # Maintainer: Francesco Colista pkgname=meson pkgver=0.53.0 pkgrel=0 pkgdesc="Fast and user friendly build system" url="https://mesonbuild.com" arch="noarch" license="Apache-2.0" depends="ninja py3-setuptools python3" subpackages="$pkgname-doc $pkgname-vim::noarch" source="https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-$pkgver.tar.gz " build() { python3 setup.py build } check() { python3 setup.py check } package() { python3 setup.py install --prefix=/usr --root="$pkgdir" } vim() { pkgdesc="$pkgdesc (vim support)" install_if="vim $pkgname=$pkgver-r$pkgrel" cd "$builddir" for kind in ftdetect ftplugin indent syntax do mkdir -p "$subpkgdir"/usr/share/vim/vimfiles/$kind install -Dm644 \ "$builddir"/data/syntax-highlighting/vim/$kind/meson.vim \ "$subpkgdir"/usr/share/vim/vimfiles/$kind/meson.vim done } sha512sums="e375e22eb650d5f8facbffe9773b740b5dcd971a86c5b197bbfa0e82a51f4774345456856e19d6305661e227afbe24db5ca472d5ff9f707b754c1d5361187cd8 meson-0.53.0.tar.gz"