mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
131 lines
3.6 KiB
Bash
131 lines
3.6 KiB
Bash
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
# Contributor: Anatol Pomozov <anatol dot pomozov at gmail>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
# - disable lto in arch-meson
|
|
|
|
pkgname=meson
|
|
pkgver=1.5.0
|
|
pkgrel=1
|
|
pkgdesc="High productivity build system"
|
|
url="https://mesonbuild.com/"
|
|
arch=(any)
|
|
license=(Apache-2.0)
|
|
depends=(
|
|
ninja
|
|
python
|
|
python-tqdm
|
|
)
|
|
makedepends=(
|
|
python-build
|
|
python-installer
|
|
python-setuptools
|
|
python-wheel
|
|
)
|
|
checkdepends=(
|
|
boost
|
|
clang
|
|
cmake
|
|
cuda
|
|
cython
|
|
doxygen
|
|
gcc-fortran
|
|
gcc-objc
|
|
git
|
|
glib2-devel
|
|
glibc-locales
|
|
gmock
|
|
gnustep-base
|
|
gobject-introspection
|
|
graphviz
|
|
gtest
|
|
gtk-doc
|
|
gtk-sharp-2
|
|
gtk3
|
|
gtkmm3
|
|
hotdoc
|
|
itstool
|
|
java-environment=8
|
|
ldc
|
|
libelf
|
|
libwmf
|
|
llvm
|
|
mercurial
|
|
mono
|
|
nasm
|
|
netcdf-fortran
|
|
openmpi
|
|
openssh
|
|
protobuf
|
|
python-gobject
|
|
python-pytest-xdist
|
|
qt5-base
|
|
qt5-tools
|
|
rust
|
|
rust-bindgen
|
|
sdl2
|
|
vala
|
|
valgrind
|
|
vulkan-validation-layers
|
|
wxgtk3
|
|
)
|
|
source=(
|
|
https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-$pkgver.tar.gz{,.asc}
|
|
meson-reference-$pkgver.3::https://github.com/mesonbuild/meson/releases/download/$pkgver/meson-reference.3
|
|
meson-reference-$pkgver.json::https://github.com/mesonbuild/meson/releases/download/$pkgver/reference_manual.json
|
|
arch-meson
|
|
cross-lib32
|
|
native-clang
|
|
0001-Skip-broken-tests.patch
|
|
)
|
|
b2sums=('5103622831a3581b428f9cdd96950b8544ddfdcbd384ec2ccd344d6b9ffb2cdd7da069963d57b09a22f26938f6a3b34823abe678fb50a0fe8d79c8abc7899605'
|
|
'SKIP'
|
|
'c81d1014f93ca3848e03e6a8948190a31e1823b04134ab6861db94d5b9517252bf66fcbbc987ba2051430c54282256d729d3575db83e1e8d09fa344c6ff06dbf'
|
|
'1b30812b992a8c823f5536bbade66ede9817d14ed29f7dd303c838e85e0d43150d6c220f20b108b6823fb283b3fb7424b6220855282fff3ac80707c7286a4bc5'
|
|
'70f042a7603d1139f6cef33aec028da087cacabe278fd47375e1b2315befbfde1c0501ad1ecc63d04d31b232a04f08c735d61ce59d7244521f3d270e417fb5af'
|
|
'9b16477aa77a706492e26fb3ad42e90674b8f0dfe657dd3bd9ba044f921be12ceabeb0050a50a15caee4d999e1ec33ed857bd3bed9e4444d73bb4a4f06381081'
|
|
'7d88929d5a3b49d91c5c9969f19d9b47f3151706526b889515acaeda0141257d5115875ac84832e9ea46f83a7700d673adcc5db84b331cd798c70ae6e90eac1e'
|
|
'ee2b3a174c86affd7b5c26128eda7c51f8b223184eb4a67d957fb32a1396068e5b2613bfdb142134e4ceb8b64dd4464fad3a73e2b4087e0a87f9d0ccb83203d8')
|
|
validpgpkeys=(
|
|
19E2D6D9B46D8DAA6288F877C24E631BABB1FE70 # Jussi Pakkanen <jpakkane@gmail.com>
|
|
)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
# Pass tests
|
|
patch -Np1 -i ../0001-Skip-broken-tests.patch
|
|
}
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
python -m build --wheel --no-isolation
|
|
}
|
|
|
|
check() (
|
|
cd $pkgname-$pkgver
|
|
export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
|
|
./run_tests.py --failfast
|
|
)
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
|
|
|
install -d "$pkgdir/usr/share/vim/vimfiles"
|
|
cp -rt "$pkgdir/usr/share/vim/vimfiles" data/syntax-highlighting/vim/*/
|
|
|
|
install -Dm644 data/shell-completions/bash/* -t "$pkgdir/usr/share/bash-completion/completions"
|
|
install -Dm644 data/shell-completions/zsh/* -t "$pkgdir/usr/share/zsh/site-functions"
|
|
|
|
install -Dm644 ../meson-reference-$pkgver.3 "$pkgdir/usr/share/man/man3/meson-reference.3"
|
|
install -Dm644 ../meson-reference-$pkgver.json "$pkgdir/usr/share/doc/$pkgname/reference_manual.json"
|
|
|
|
install -D ../arch-meson -t "$pkgdir/usr/bin"
|
|
|
|
install -Dm644 ../cross-lib32 "$pkgdir/usr/share/meson/cross/lib32"
|
|
install -Dm644 ../native-clang "$pkgdir/usr/share/meson/native/clang"
|
|
}
|
|
|
|
# vim:set sw=2 sts=-1 et:
|