pkgname=meson pkgver=1.6.1 pkgrel=1 pkgdesc="High productivity build system" arch=('x86_64') url="https://mesonbuild.com/" license=('Apache') depends=('bash' 'python' 'ninja') makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel') backup=(usr/share/meson/cross/meson_crossfile) source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz crossfile-i686 native-clang) sha256sums=(1eca49eb6c26d58bbee67fd3337d8ef557c0804e30a6d16bfdf269db997464de c18aa6ca99ff33ae4338ceb60d7195aca321099d3ab1918fec68008d354e6fbc a1fa7d0c3113776337a7e875a35d7cf625000d98024ad4537af23f719c50bfa4) build() { cd ${pkgname}-${pkgver} python3 -m build --wheel --no-isolation } package() { cd ${pkgname}-${pkgver} python3 -m installer -d ${pkgdir} dist/*.whl install -vDm644 data/shell-completions/bash/meson ${pkgdir}/usr/share/bash-completion/completions/meson install -vDm644 data/shell-completions/zsh/_meson ${pkgdir}/usr/share/zsh/site-functions/_meson install -Dm644 ${srcdir}/crossfile-i686 ${pkgdir}/usr/share/meson/cross/lib32 install -Dm644 ${srcdir}/native-clang ${pkgdir}/usr/share/meson/native/clang }