summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fd2d508fd0b578d0a0c33321a1b88bb60d847a83 (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
# Maintainer: Philip Goto <philip.goto@gmail.com>

pkgname=calls-git
pkgver=0.0.1.r4.gee126b3
pkgrel=1
pkgdesc="A phone dialer and call handler"
arch=(i686 x86_64 armv6h armv7h)
url="https://source.puri.sm/Librem5/calls"
license=(GPL3)
depends=(gsound
         libhandy
         libpeas
         modemmanager)
makedepends=()
provides=(calls)
conflicts=(calls)
source=("git+https://source.puri.sm/Librem5/calls.git")
md5sums=(SKIP)

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

build() {
    rm -rf build
    arch-meson calls build
    ninja -C build
}

check() {
    ninja -C build test
}

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