summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6709ce89c815864fcfbb17fb5144c6afebc3f90c (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
51
_name='phosh-osk-stub'
pkgname="$_name"
pkgver=0.38.0
pkgrel=1
pkgdesc="An experimental alternative OSK for phosh"
install="phosh-osk-stub.install"
arch=('x86_64' 'aarch64')
url="https://gitlab.gnome.org/guidog/$_name"
license=('GPL-3.0-only')

depends=(
    feedbackd
    gnome-desktop
    fzf
    hunspell
    wayland-protocols
)
makedepends=(
    git
    meson
    cmake
)
optdepends=(
    'presage-git: predictive text entry'
    'govarnam: transliteration for Indian languages'
)
provides=(${_name})
conflicts=(
    ${_name}
)

source=(
    "${_name}::git+$url#tag=v$pkgver"
    "phosh-osk-stub.install"
)
sha512sums=('aa03bb5a534cce45adef21a99732e9e5f75f535e4dc222572e0eeaac4d61f40de842d674a01b878f9fbd374655a611bf2f505db31c236c43b8fc30a836aa21b8'
            '55ae71c3ba4bf2ccaf017c9a64554ddeda11c8fd67e907941a364869ef44aca97b4eb185a17cd25782c78d7c51151ae952c95f6970333dc4b8a5d691c8112b1c')


build() {
    arch-meson -Dgtk_doc=false -Ddefault_osk=false "$_name" build
    meson compile -C build
}

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

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