jobextra/meson/PKGBUILD

105 lines
4.6 KiB
Bash
Raw Normal View History

2022-03-20 13:34:07 +01:00
#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
2022-03-20 13:34:07 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
# Website : https://pozol.eu
2022-03-20 13:34:07 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=meson
2022-12-25 12:28:02 +01:00
pkgver=1.0.0
pkgrel=02
2022-03-20 13:34:07 +01:00
pkgdesc='High productivity build system'
url='https://mesonbuild.com/'
arch=('any')
2022-12-25 12:28:02 +01:00
depends=(ninja python)
makedepends=(
python-build
python-installer
python-wheel
)
checkdepends=( boost clang cmake cuda cython doxygen gcc-fortran gcc-objc
git 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
0001-Skip-broken-tests.patch
2022-03-20 13:34:07 +01:00
arch-meson
jobo-meson)
prepare() {
2022-12-25 12:28:02 +01:00
cd $pkgname-$pkgver
2022-03-20 13:34:07 +01:00
## Arch: Our containers do not allow sanitizers to run
patch -Np1 -i ../0001-Skip-broken-tests.patch
2022-08-18 13:28:53 +02:00
2022-03-20 13:34:07 +01:00
}
build() {
2022-12-25 12:28:02 +01:00
cd $pkgname-$pkgver
python -m build --wheel --no-isolation
2022-03-20 13:34:07 +01:00
}
2022-12-25 12:28:02 +01:00
#
2022-06-03 19:34:00 +02:00
#check() (
2022-12-25 12:28:02 +01:00
# cd $pkgname-$pkgver
2022-06-03 19:34:00 +02:00
# export LC_CTYPE=en_US.UTF-8 CPPFLAGS= CFLAGS= CXXFLAGS= LDFLAGS=
2022-12-25 12:28:02 +01:00
# ./run_tests.py --failfast
2022-06-03 19:34:00 +02:00
#)
#
2022-12-25 12:28:02 +01:00
#========================================== short test summary info ===========================================
#FAILED run_unittests.py::AllPlatformTests::test_testsetups - AssertionError: 'TEST_ENV is set' not found in "Log of Meson test suite run on 2022-12-25T01:12:12.907961...
#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
#!!!!!!!!!!!!!!!!!!!!!!!!!!! xdist.dsession.Interrupted: stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!
#===================== 1 failed, 409 passed, 65 skipped, 13 warnings in 154.65s (0:02:34) =====================
#Total time: 155.019 seconds
#
2022-03-20 13:34:07 +01:00
package() {
2022-12-25 12:28:02 +01:00
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/*/
2022-03-20 13:34:07 +01:00
2022-12-25 12:28:02 +01:00
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"
2022-03-20 13:34:07 +01:00
2022-12-25 12:28:02 +01:00
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"
2022-03-20 13:34:07 +01:00
# Arch packaging helper
2022-12-25 12:28:02 +01:00
install -D ../arch-meson -t "$pkgdir/usr/bin"
2022-03-20 13:34:07 +01:00
# joborun-pkg packaging helper
2022-12-25 12:28:02 +01:00
install -D ../jobo-meson -t "$pkgdir/usr/bin"
2022-03-20 13:34:07 +01:00
}
#---- license gpg-key sha256sums ----
license=('Apache')
validpgpkeys=('19E2D6D9B46D8DAA6288F877C24E631BABB1FE70') # Jussi Pakkanen <jpakkane@gmail.com>
2022-12-25 12:28:02 +01:00
sha512sums=('9b1195cfe856c1aa51bc79f6eb4d0f94925bb02d0a9fbd68a6a6ced6e5c252b09b22d9aac812640687e49b8d64a313ce48d0a69a3bf83ea8ffb8c9dab559fc23'
'SKIP'
'e756e3249e34d119b81403d1c36abbc63ee77db019b16742ebcc89689c177868e3684ae682a058c4bd7c6207d88694445f9e2f2c778f1365fe505e64186394ea'
'16099033f4eda0acd3cb2f5785717b493e1b64c50a66012161a10cbcc22e941a38b04124bc2d9622221850226e5407d4e050074d0237a0012dba869bd66af00d'
'30558210317307e720fd4d5d360c15882c5c756aad7b26036bc5875a0599312a711df174a87f29d528181ec88e9d48b2ee82456cf23109907c7ba4b4dcc5c238'
'f451f8a7ef9cf1dd724c2ce20bb85a3f1611b87b2e7a17ef0fdbe8ab82a67389f818ea30a5adfe8413143e4eac77ea2e0b8234b5b2466b41a892e2bd0435376c'
SKIP)
sha256sums=(aa50a4ba4557c25e7d48446abfde857957dcdf58385fffbe670ba0e8efacce05 # meson-1.0.0.tar.gz
e61af8e08ded46925f2f00ae1de779b1d92f9fa45365e1c9356613f4e034ff0e # meson-1.0.0.tar.gz.asc
8808e24ccb4d75bd005d418c1525bba0d5a718d9a369e9aca093ff3847b5a819 # meson-reference-1.0.0.3
5a09fd796dec56fd02b001231a53cc80f349bfcb2042f2ac1515e195b5bdd877 # meson-reference-1.0.0.json
f13ec9e555cff3fc281ef6b9cfaf9c08daa565bd3e558d2ebd5f37f50cf5afec # 0001-Skip-broken-tests.patch
2022-11-15 16:45:12 +01:00
ac3387ed5759cc512b1f2a4e5b3dd940274b02f943a7e5d644792ee714e6b95e # arch-meson
2022-03-20 13:34:07 +01:00
b2aeae2787cf8f3ffb8778ee7f1a434895b1512bc0bdb33528c4cb2aeb067904) # jobo-meson