107 lines
4.7 KiB
Bash
107 lines
4.7 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=meson
|
|
pkgver=1.1.1
|
|
pkgrel=01
|
|
pkgdesc='High productivity build system'
|
|
url='https://mesonbuild.com/'
|
|
depends=(ninja python python-typing_extensions)
|
|
makedepends=(
|
|
python-build
|
|
python-installer
|
|
python-wheel
|
|
python-setuptools
|
|
)
|
|
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
|
|
arch-meson
|
|
jobo-meson)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
|
|
## Arch: Our containers do not allow sanitizers to run
|
|
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
|
|
#)
|
|
#
|
|
#========================================== 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
|
|
#
|
|
|
|
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"
|
|
|
|
# Arch packaging helper
|
|
install -D ../arch-meson -t "$pkgdir/usr/bin"
|
|
|
|
# joborun-pkg packaging helper
|
|
install -D ../jobo-meson -t "$pkgdir/usr/bin"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=('Apache')
|
|
|
|
validpgpkeys=('19E2D6D9B46D8DAA6288F877C24E631BABB1FE70') # Jussi Pakkanen <jpakkane@gmail.com>
|
|
|
|
b2sums=('295b46d19c8a1d64d326a6c826e2abe11d9768902ed2f8816df18677e7f3f58decc0c660925821825ecd9a4955a65bda8b2aa66a7bb1961810d8f78f92a3fd8a'
|
|
'SKIP'
|
|
'667fa519da08ffbb6befe7fce3db7e3df44bc722c0c7b679fd4369f59afa20a886cea2ed0d3d2c7d7973696e9a57d61c66f0b3a9cfb6e881ceb5f7ee7a26175c'
|
|
'4661d7b9643eec3d73af156f8401cadfcc6798e966fbd1bb40b5f87e3a72297e27259a9fa1d32f54806fe16fd129ed142910d30661e7c9a33f666ff7261b5e1d'
|
|
'742e2c16c6c464e939f68ec7f58951836a75a0fc0170ada25826e7dbc7191bd289f66bfe683941a5ff98d102fd54aeda2c407e9d2ab4276cf607a82ab948093b'
|
|
'801ad7689aabd2861c760d6001ce2e84c3d5aaed867b087bc1699e7c15d914ee26c9d855999f389d28b4765f081523a1468755768bc0163185f132e157ecced1'
|
|
SKIP)
|
|
|
|
sha256sums=(d04b541f97ca439fb82fab7d0d480988be4bd4e62563a5ca35fadb5400727b1c # meson-1.1.1.tar.gz
|
|
07e80504c4b1f75f27b848f7f618456cdc7f38e9b7bd480ae8851b6cf01e49f0 # meson-1.1.1.tar.gz.asc
|
|
fbb25bb377b7d2db7b3b3af835b832e71cc096f0d49fdbe7597cd054490f1ed7 # meson-reference-1.1.1.3
|
|
92458bcb38eb9d881656190740fd2638e28dac5537d369587a6e8e28987bb1b0 # meson-reference-1.1.1.json
|
|
c45ca77d56d086264b330d08f9b4705fe194f7d929db144819e1cfbe4eb1869a # 0001-Skip-broken-tests.patch
|
|
ac3387ed5759cc512b1f2a4e5b3dd940274b02f943a7e5d644792ee714e6b95e # arch-meson
|
|
b2aeae2787cf8f3ffb8778ee7f1a434895b1512bc0bdb33528c4cb2aeb067904) # jobo-meson
|
|
|
|
## b256c088922c9054d7beb6304bf79c8917c79293cf1a1670eb2b317aeedef7f3 meson-1.1.1-01-x86_64.pkg.tar.lz
|