# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
setvar pkgname = 'meson'
setvar pkgver = '0.42.1'
setvar pkgrel = '0'
setvar pkgdesc = ""Build system meant to be both extremely fast and as user friendly as possible""
setvar url = ""http://mesonbuild.com/""
setvar arch = ""noarch""
setvar license = ""ASL 2.0""
setvar depends = ""python3 ninja""
setvar makedepends = ""python3-dev""
setvar subpackages = ""$pkgname-doc""
setvar source = ""https://github.com/mesonbuild/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz""
setvar builddir = ""$srcdir/$pkgname-$pkgver""

proc build {
	cd $builddir
	python3 setup.py build
}

proc check {
	cd $builddir
	python3 setup.py check
}

proc package {
	cd $builddir
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

setvar sha512sums = ""f9982a19160c51c53741a65a48432896799be90c2d99941a45a14c3fcc14df3469808b75d905e1ac81221b057400913e7ae0f7d24e6865d8f1e664e1686aecb4  meson-0.42.1.tar.gz""