summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c4b92efa343d9b8cdbef561b10018c097f5e98fe (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
# Maintainer: whriedplanck
# Contributor: csslayer <wengxt AT gmail com>

pkgname=fcitx5-sayura-git
pkgver=r64.8a574b6
pkgrel=1
pkgdesc="A Sinhala input method for Fcitx input method framework ported from IBus-Sayura"
arch=('x86_64')
url="https://github.com/fcitx/fcitx5-sayura"
license=('GPL')
depends=('boost-libs' 'curl' 'fcitx5-git' 'opencc')
makedepends=('clang' 'cmake' 'git' 'extra-cmake-modules')
replaces=('fcitx-sayura')
conflicts=('fcitx-sayura')
source=("git+$url.git")
md5sums=('SKIP')

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

build() {
    cd fcitx5-sayura
    mkdir -p build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX=/usr
    make
}

package() {
    cd fcitx5-sayura
    cd build
    make DESTDIR="$pkgdir" install
}