summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9630fa56987acb3fa201f2d1cdeabdef750ff8fb (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
pkgname=wf-osk-git
pkgver=r7.d28bd69
pkgrel=1
pkgdesc="A very, very basic on-screen keyboard for wayland using gtkmm, virtual-keyboard-v1 and layer-shell protocols"
arch=('any')
url="https://github.com/WayfireWM/wf-osk"
license=('MIT')
depends=('wayland-protocols' 'gtkmm3' 'gtk-layer-shell')
makedepends=('git' 'meson' 'ninja' 'wayland-protocols' 'extra-cmake-modules')
provides=("${pkgname}" "wf-osk")
conflicts=("wf-osk")
replaces=()
options=()
source=('git+https://github.com/WayfireWM/wf-osk')
sha256sums=('SKIP')
prepare() {
  cd "$srcdir/wf-osk"
  git submodule update --init --recursive
}
pkgver() {
	cd "$srcdir/wf-osk"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"

}

build() {
	cd "$srcdir/wf-osk/"
  rm -rf build
  arch-meson build
  ninja -C build
}


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