summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bfbc22f8006071d5742c345e9fdd44dd531f7a57 (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: Mark Wagie <mark dot wagie at proton dot me>
# Contributor: Igor Dyatlov <dyatlov.igor@protonmail.com>
pkgname=valent-git
pkgver=r1079.a0336ce6
pkgrel=1
pkgdesc="Connect, control and sync devices"
arch=('x86_64')
url="https://valent.andyholmes.ca"
license=('GPL3')
depends=('evolution-data-server' 'gnutls' 'gstreamer' 'json-glib' 'libadwaita'
         'libpeas' 'libportal-gtk4' 'libpulse' 'libsysprof-capture' 'sqlite')
makedepends=('git' 'meson' 'gobject-introspection' 'vala')
#makedepends+=('gi-docgen') # -Ddocumentation=true (should be split out into a docs package)
checkdepends=('appstream')
#checkdepends+=('walbottle') # -Dtests=true (for JSON tests)
provides=('libvalent-1.so=1.0.0')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/andyholmes/valent.git'
        'git+https://gitlab.gnome.org/GNOME/libgnome-volume-control.git')
sha256sums=('SKIP'
            'SKIP')

pkgver() {
  cd "$srcdir/${pkgname%-git}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
  cd "$srcdir/${pkgname%-git}"
  git submodule init
  git config submodule.subprojects/gvc.url "$srcdir/libgnome-volume-control"
  git -c protocol.file.allow=always submodule update
}

build() {
  arch-meson "${pkgname%-git}" build \
    -Ddocumentation='false' \
    -Dtests='false' \
    -Dfuzz_tests='false' \
  meson compile -C build
}

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

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