blob: 5bbd89bf7a37cb46c15be5b4c6fff05c7ba93385 (
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
51
52
53
|
# Maintainer: Jeffrey Zhang <zhang.lei.fly@gmail.com>
_pkgname=virt-viewer
pkgname=$_pkgname-no-header
pkgver=11.0
pkgrel=4
pkgdesc='A lightweight interface for interacting with the graphical display of virtualized guest OS. This package contains a patch drop the header bar.'
arch=('x86_64')
url='https://gitlab.com/virt-viewer/virt-viewer'
license=('GPL')
depends=('gtk-vnc' 'libvirt' 'spice-gtk' 'libvirt-glib' 'libgovirt' 'vte3')
makedepends=('meson' 'intltool' 'spice-protocol' 'gobject-introspection' 'bash-completion')
replaces=('virtviewer')
provides=("$_pkgname")
conflicts=("$_pkgname")
source=(
"https://releases.pagure.org/virt-viewer/virt-viewer-${pkgver}.tar.xz"{,.asc}
"https://gitlab.com/Paper_/virt-viewer/-/commit/41cc016278e713d3db156761fce6437dff81a53a.patch"
"https://gitlab.com/virt-viewer/virt-viewer/-/merge_requests/129.diff"
"drop-header.patch")
b2sums=('41914a60361f0a47a0b0b54962d228ffaec67c6b69c664bb6fe683b7074dd5e2136d2bf3528b6e1b6b785cc4e337125fe16fdd94dd603dd42e8fde543931241a'
'SKIP'
'd1b79f2bdc2749049767d7e22cf530c04438547fb3485fd0ab084222600ddcb08b8a27e104216c5da9b25d9c792d1cdf085d1c23c988194c3c6c22cf05eaa0e2'
'SKIP'
'6571f7637f8328118bb4469d52a92936820ebc7a037bb9cf6e6bd257889ec43b18d4c9c952cf1d968ef4b8c4a08ea4358cec47754d869b6e59153a0f2dddf578')
validpgpkeys=('DAF3A6FDB26B62912D0E8E3FBE86EBB415104FDF') # Daniel P. Berrange
prepare() {
cd "${_pkgname}-${pkgver}"
patch -p1 < "${srcdir}/drop-header.patch"
patch -p1 < "${srcdir}/41cc016278e713d3db156761fce6437dff81a53a.patch"
patch -p1 < "${srcdir}/129.diff"
}
build() {
arch-meson "${_pkgname}-${pkgver}" build \
-Dlibvirt=enabled \
-Dvnc=enabled \
-Dspice=enabled \
-Dovirt=enabled \
-Dvte=enabled \
-Dbash_completion=enabled
ninja -C build
}
check() {
ninja -C build test
}
package() {
DESTDIR="${pkgdir}" ninja -C build install
}
|