summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 2713b4b611df5751739121fe4818b0afe4b0d9d5 (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
pkgname=gnome-boxes-git
_pkgname=gnome-boxes
pkgver=3.37.90+158+g478d3c69
pkgrel=1
pkgdesc="Simple GNOME application to access remote or virtual systems"
arch=(x86_64)
url="https://wiki.gnome.org/Apps/Boxes"
license=(LGPL)
depends=('cdrtools' 'edk2-ovmf' 'freerdp' 'gtksourceview4' 'gtk-vnc' 'libarchive' 'libgudev' 'libhandy' 'libosinfo'
         'libsecret' 'libvirt-glib' 'mtools' 'qemu' 'spice-gtk' 'tracker3' 'webkit2gtk')
makedepends=('git' 'gobject-introspection' 'yelp-tools' 'meson' 'spice-protocol' 'vala')
provides=('gnome-boxes')
conflicts=('gnome-boxes')
source=("git+https://gitlab.gnome.org/GNOME/gnome-boxes.git"
        "git+https://gitlab.gnome.org/GNOME/gtk-frdp.git"
        "git+https://gitlab.gnome.org/GNOME/libhandy.git"
        "git+https://gitlab.gnome.org/felipeborges/libovf-glib.git")
b2sums=('SKIP'
        'SKIP'
        'SKIP'
        'SKIP')

pkgver() {
  cd $_pkgname
  git describe --tags | sed 's/^v//;s/-/+/g'
}

prepare() {
  cd $_pkgname

  git submodule init
  git submodule set-url subprojects/gtk-frdp "$srcdir/gtk-frdp"
  git submodule set-url subprojects/libhandy "$srcdir/libhandy"
  git submodule set-url subprojects/libovf-glib "$srcdir/libovf-glib"
  git submodule update
}

build() {
  arch-meson $_pkgname build
  meson compile -C build
}

check() {
  meson test -C build --print-errorlogs
}

package() {
  DESTDIR="$pkgdir" meson install -C build
}