meson/PKGBUILD

34 lines
1.1 KiB
Bash
Raw Normal View History

2024-10-15 20:05:58 +08:00
# This is an example PKGBUILD file. Use this as a start to creating your own,
# and remove these comments. For more information, see 'man PKGBUILD'.
# NOTE: Please fill out the license field for your package! If it is unknown,
# then please put 'unknown'.
# Maintainer: Future Linux Team <future_linux@163.com>
pkgname=meson
pkgver=1.4.0
pkgrel=1
pkgdesc="High productivity build system"
arch=('x86_64')
url="https://mesonbuild.com/"
license=('Apache')
depends=('ninja')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
backup=(usr/share/meson/cross/x86_64-future-linux)
source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=(8fd6630c25c27f1489a8a0392b311a60481a3c161aa699b330e25935b750138d)
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
}