Files
LFS-PKGBUILDs/lfs/meson-1.7.0.PKGBUILD
2025-03-26 11:35:19 -04:00

24 lines
845 B
Plaintext

pkgname=meson
pkgver=1.7.0
pkgdesc="High productivity build system"
homepage="https://mesonbuild.com/"
arch=(any)
license=(Apache-2.0)
sources=("${pkgname}-${pkgver}.tar.gz")
urls=("https://github.com/mesonbuild/meson/releases/download/${pkgver}/${sources[0]}")
md5sums=("c20f3e5ebbb007352d22f4fd6ceb925c")
src_prepare() {
tar -xf ${distdir}/${sources[0]} --strip-components=1
}
src_build() {
pip3 wheel -w dist --no-cache-dir --no-build-isolation --no-deps $PWD
}
src_install() {
pip3 install --no-deps --no-warn-script-location --no-index --no-cache-dir --no-user --force-reinstall --root ${pkgdir} --find-links dist ${pkgname}
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
}