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

pkgname=virtboard-git
pkgver=0.0.6.r0.g1d30b078
pkgrel=1
pkgdesc="Basic keyboard, blazing the path of modern Wayland keyboards"
url="https://source.puri.sm/Librem5/virtboard"
license=("GPL3")
arch=(i686 x86_64 armv6h armv7h)
depends=(cairo
         libxkbcommon
         wayland)
makedepends=(git
             pkg-config
             meson
             wayland-protocols)
provides=(virtboard)
conflicts=(virtboard)
source=("git+https://source.puri.sm/Librem5/virtboard.git")
sha256sums=("SKIP")

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

build() {
    arch-meson virtboard build
    ninja -C build
}

check() {
    ninja -C build test
}

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