meson/PKGBUILD

43 lines
1.5 KiB
Bash
Raw Permalink 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'.
2024-10-15 20:09:23 +08:00
# Maintainer: Futura Linux Team <future_linux@163.com>
2024-10-15 20:05:58 +08:00
pkgname=meson
2024-11-03 03:14:19 +08:00
pkgver=1.6.0
2024-10-15 20:05:58 +08:00
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')
2024-10-15 20:09:23 +08:00
backup=(usr/share/meson/cross/meson_crossfile)
source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz
meson_crossfile
future-meson)
2024-11-03 03:14:19 +08:00
sha256sums=(999b65f21c03541cf11365489c1fad22e2418bb0c3d50ca61139f2eec09d5496
2024-10-15 20:09:23 +08:00
f5ca8a8d831123c750ee4541a7e0d6c0c39db29a12965a1a806fbc46643bdd38
7267f73db858411b9808c7cdce82f4967831eb50efe2c2d3dcdf6bf7adc2e992)
2024-10-15 20:05:58 +08:00
build() {
2024-10-15 20:09:23 +08:00
cd ${pkgname}-${pkgver}
2024-10-15 20:05:58 +08:00
2024-10-15 20:09:23 +08:00
python3 -m build --wheel --no-isolation
2024-10-15 20:05:58 +08:00
}
package() {
2024-10-15 20:09:23 +08:00
cd ${pkgname}-${pkgver}
2024-10-15 20:05:58 +08:00
2024-10-15 20:09:23 +08:00
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 -vDm644 ${srcdir}/meson_crossfile ${pkgdir}/usr/share/meson/cross/meson_crossfile
install -vDm755 ${srcdir}/future-meson ${pkgdir}/usr/bin/future-meson
2024-10-15 20:05:58 +08:00
}