blob: 3deebc9b54c6321b6c13cfd11b4fe2c3f9b2f0e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Maintainer: Manuel Stoeckl <com dоt mstoeckl аt wppkgb>
pkgname=waypipe-git
pkgver=0.10.0.rc1.r24.g4a5104c
pkgrel=1
pkgdesc='A proxy for Wayland protocol applications; like ssh -X'
license=('GPL-3.0-or-later')
makedepends=('git' 'meson' 'ninja' 'scdoc' 'shaderc' 'pkgconf' 'cargo' 'rust-bindgen' 'clang' 'vulkan-headers')
depends=('lz4' 'zstd' 'vulkan-icd-loader' 'mesa' 'ffmpeg')
checkdepends=('vulkan-validation-layers')
optdepends=(
'openssh: recommended transport'
)
url='https://gitlab.freedesktop.org/mstoeckl/waypipe'
source=('git+https://gitlab.freedesktop.org/mstoeckl/waypipe.git')
sha512sums=('SKIP')
# git may be less stable than releases, so enable debuginfo
options=(debug)
arch=('i686' 'x86_64' 'arm' 'armv6h' 'armv7h' 'aarch64')
provides=('waypipe')
conflicts=('waypipe')
pkgver() {
cd waypipe
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//'
}
prepare() {
cd waypipe
cargo fetch --locked
cd ../
# Use 'meson' instead of 'arch-meson', because the latter sets
# a 'plain' buildtype but environment variables configuring build
# are only set for C, not for Rust
meson waypipe "$srcdir/build" --buildtype debugoptimized -Dwerror=false --prefix /usr
}
check() {
cd "$srcdir/build"
meson test
}
build() {
cd waypipe
ninja -C "$srcdir/build"
}
package() {
cd waypipe
DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
}
|