meson 1.5.1-1
This commit is contained in:
parent
e4a74d8b4e
commit
3787b4087b
41
meson/PKGBUILD
Normal file
41
meson/PKGBUILD
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
# 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.5.1
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="High productivity build system"
|
||||||
|
arch=('x86_64')
|
||||||
|
url="https://mesonbuild.com/"
|
||||||
|
license=('Apache')
|
||||||
|
depends=('ninja')
|
||||||
|
makedepends=('python-setuptools' 'python-wheel')
|
||||||
|
source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.gz
|
||||||
|
meson_crossfile
|
||||||
|
future-meson)
|
||||||
|
sha256sums=(567e533adf255de73a2de35049b99923caf872a455af9ce03e01077e0d384bed
|
||||||
|
f5ca8a8d831123c750ee4541a7e0d6c0c39db29a12965a1a806fbc46643bdd38
|
||||||
|
7267f73db858411b9808c7cdce82f4967831eb50efe2c2d3dcdf6bf7adc2e992)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
|
pip3 wheel -w dist --no-build-isolation --no-deps $PWD
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd ${pkgname}-${pkgver}
|
||||||
|
|
||||||
|
pip3 install --root ${pkgdir} --no-index --find-links dist meson
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
}
|
2
meson/future-meson
Normal file
2
meson/future-meson
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
exec meson setup --cross-file=meson_crossfile "$@"
|
17
meson/meson_crossfile
Normal file
17
meson/meson_crossfile
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
[binaries]
|
||||||
|
c = 'x86_64-future-linux-gnu-gcc'
|
||||||
|
cpp = 'x86_64-future-linux-gnu-g++'
|
||||||
|
ar = 'x86_64-future-linux-gnu-gcc-ar'
|
||||||
|
nm = 'x86_64-future-linux-gnu-gcc-nm'
|
||||||
|
ranlib = 'x86_64-future-linux-gnu-gcc-ranlib'
|
||||||
|
pkg-config = 'x86_64-future-linux-gnu-pkg-config'
|
||||||
|
|
||||||
|
[properties]
|
||||||
|
needs_exe_wrapper = true
|
||||||
|
|
||||||
|
[host_machine]
|
||||||
|
system = 'linux'
|
||||||
|
cpu_family = 'x86_64'
|
||||||
|
cpu = 'x86_64'
|
||||||
|
endian = 'little'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user