mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-12 02:04:37 +08:00
48 lines
1.7 KiB
Bash
48 lines
1.7 KiB
Bash
pkgname=meson
|
|
pkgver=0.47.1
|
|
pkgrel=1
|
|
pkgdesc='High productivity build system'
|
|
url='http://mesonbuild.com/'
|
|
arch=('any')
|
|
license=('Apache')
|
|
depends=('python3' 'ninja')
|
|
makedepends=('python3-setuptools')
|
|
checkdepends=('gcc-objc' 'vala' 'rust' 'gcc-fortran' 'mono' 'boost' 'qt5-base' 'git'
|
|
'python3-cython' 'gtest' 'gmock' 'protobuf' 'python3-gobject' 'gobject-introspection'
|
|
'itstool' 'valgrind' 'sdl2' 'doxygen' 'llvm' 'clang' 'gnustep-base' 'gtk-doc' 'gtk3' 'vulkan-validation-layers'
|
|
'qt5-tools' 'openssh' 'mercurial')
|
|
source=(https://github.com/mesonbuild/meson/releases/download/${pkgver}/meson-${pkgver}.tar.gz{,.asc}
|
|
chakra-meson)
|
|
sha512sums=('b86a95a057cfe3b46a33dfe57d0b215133306808871cd2d0f479421b7fd7ce7f5b49aa4c1d429ac0a1a56f805e1c690d220b567b8118e875b140dc75ad8218a5'
|
|
'SKIP'
|
|
'dc24aa41002a9e27c2cb043caf4bdcb3aae66adcaffc6c38858eb300b7e2ce776f8d5859922817decbceab2e06912598bf887d7691cfecdfbdde9e08e7da4474')
|
|
validpgpkeys=('95181F4EED14FDF4E41B518D3BF4693BFEEB9428') # Jussi Pakkanen <jpakkane@gmail.com>
|
|
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
python3 setup.py build
|
|
}
|
|
|
|
check() {
|
|
cd ${pkgname}-${pkgver}
|
|
# export MESON_PRINT_TEST_OUTPUT=1 # set this for debug output
|
|
|
|
export LC_CTYPE=en_US.UTF-8
|
|
./run_tests.py
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
python3 setup.py install --root="${pkgdir}" -O1
|
|
|
|
install -d "${pkgdir}/usr/share/vim/vimfiles"
|
|
cp -rt "${pkgdir}/usr/share/vim/vimfiles" data/syntax-highlighting/vim/*
|
|
install -Dt "${pkgdir}/usr/share/emacs/site-lisp" -m644 data/syntax-highlighting/emacs/*
|
|
install -Dt "${pkgdir}/usr/share/zsh/site-functions" -m644 data/shell-completions/zsh/*
|
|
|
|
# Chakra packaging helper
|
|
install -D ../chakra-meson -t "${pkgdir}/usr/bin"
|
|
}
|
|
|