summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 24b318d838b2028b5c52a6e86245f65592673163 (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
# Maintainer: Aren Moynihan <aren@peacevolution.org>
# Based on mms-tng-git by Caleb Fontenot <foley2431 at gmail dot com>

pkgname=vvmd-git
pkgver=0.6.1.r0.gc319b09
pkgrel=1
pkgdesc="Visual Voicemail Daemon"
url="https://gitlab.com/kop316/vvmd"
arch=('x86_64' 'aarch64')
license=("GPL2")
depends=("mobile-broadband-provider-info" "libmm-glib" "libphonenumber")
makedepends=("git" "meson")
provides=("vvmd")
conflicts=("vvmd")
source=("$pkgname::git+https://gitlab.com/kop316/vvmd"
        "vvmd.service")
sha256sums=("SKIP"
            "b4bfd3b3758427975eee8ca5b4a39fb43ce7ea36b56d7c82a23fdacdb4161c50")

pkgver() {
  cd "$srcdir/$pkgname"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'  
}

build() {
  cd "$srcdir/$pkgname"

  arch-meson "$srcdir/$pkgname" build
  meson compile -C build
}

check() {
  cd "$srcdir/$pkgname"

  meson test -C build
}

package() {
  cd "$srcdir/$pkgname"

  meson install -C build --destdir "$pkgdir"

  mkdir -p "$pkgdir/usr/lib/systemd/user/default.target.wants"
  install -Dm644 "../vvmd.service" "$pkgdir/usr/lib/systemd/user"
  ln -sfv "/usr/lib/systemd/user/vvmd.service" \
    "$pkgdir/usr/lib/systemd/user/default.target.wants/vvmd.service"
}