blob: 4806b42a89c0a23e27554eaad1f32cb82ad493d7 (
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
|
# Maintainer: Kimiblock Moe
pkgname=field-monitor
pkgdesc="Remote-desktop client designed for the GNOME platform. Access virtual machines and other external screens."
url="https://github.com/theCapypara/field-monitor"
license=("GPL-3.0-or-later")
arch=("x86_64")
pkgver=50.1
pkgrel=1
makedepends=("rust" "cargo" "git" "blueprint-compiler" "meson" "libvirt" "libvirt-glib" "blueprint-compiler" "bubblewrap")
depends=(libadwaita gtk4 hicolor-icon-theme dconf gcc-libs glib2 glibc spice-gtk spice-protocol phodav python-pyparsing libcacard spice gcr-4 freerdp vte4 json-c libtirpc gtk-vnc)
source=("git+https://github.com/theCapypara/field-monitor#tag=v${pkgver}")
sha256sums=('ab483b0e2aca8365479c24263c66aaa7e1dab2654928e1a57d5e748be99eedd2')
options=()
function prepare() {
export CFLAGS+=" -ffat-lto-objects"
export RUSTUP_TOOLCHAIN=stable
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix $srcdir=src"
cd field-monitor
cargo fetch --target "$(rustc -vV | sed -n 's/host: //p')"
}
function build() {
export CFLAGS+=" -ffat-lto-objects"
export RUSTUP_TOOLCHAIN=stable
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix $srcdir=src"
#export RUST_BACKTRACE=1
arch-meson "${srcdir}/field-monitor" build --buildtype=release
meson compile -C build
}
function check() {
export CFLAGS+=" -ffat-lto-objects"
export RUSTUP_TOOLCHAIN=stable
export RUSTFLAGS="${RUSTFLAGS} --remap-path-prefix $srcdir=src"
meson test -C build --no-rebuild --print-errorlogs
}
function package() {
meson install \
-C build \
--no-rebuild \
--destdir "${pkgdir}"
}
|