PKGBUILD 968 Bytes
Newer Older
fkardame's avatar
fkardame committed
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
# Maintainer: Philip Müller <philm@manjaro.org>
# Contributor: Bhushan Shah <bshah@kde.org>
pkgname=maliit-keyboard-git
pkgver=r2048.g36db49b4
pkgrel=2
pkgdesc="Maliit Keyboard"
arch=('aarch64')
url="https://github.com/ubports/keyboard-component"
license=('GPL')
groups=()
depends=('maliit-framework-git' 'qt5-feedback' 'qt5-multimedia'
         'hunspell' 'libchewing' 'presage-git' 'libpinyin' 'sqlite')
makedepends=('git' 'cmake')
install=
source=("git+$url.git")
md5sums=('SKIP')

pkgver() {
    cd keyboard
    printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    mkdir -p build
    cd keyboard
}

build() {
    cd build
    cmake ../keyboard \
    -DCMAKE_INSTALL_LIBEXECDIR=lib \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DBUILD_TESTING=OFF \
    -DLIB_INSTALL_DIR=lib \
    -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
    -DCMAKE_BUILD_TYPE=Release
    make
}

package() {
    cd build
    make DESTDIR="$pkgdir/" install
}