app=meson
version=0.56.0
build=1sml
homepage="https://github.com/mesonbuild/meson"
download="https://github.com/mesonbuild/meson/archive/refs/tags/$version.tar.gz"
desc="next generation build system based on python3 and ninja"
requires="python3 itstool ninja"

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  python3 setup.py build
  python3 setup.py install --prefix="" --root="$pkg"

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
81cbe26bd378db568f6c3e7ad09312c1a0fcb940f5b917bb4dcfbc289ecb5cd57d9b6e657e0c5825fd9608749168425932f34ca5f7af84ca288ca67f9812d29d  meson-0.56.0.tar.lz
"
