summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8b44861b3f7f84784237e3389f86620b9fa03dd5 (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
# $Id: PKGBUILD 226039 2017-04-27 13:52:30Z felixonmars $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: csslayer <wengxt AT gmail com>

pkgname=fcitx5-rime-git
pkgver=5.0.0.r1.gc90df10
pkgrel=2
pkgdesc="RIME input method for fcitx5"
arch=('i686' 'x86_64')
url="https://github.com/fcitx/fcitx5-rime"
license=('LGPL')
depends=('boost-libs' 'curl' 'fcitx5-git' 'librime' 'opencc' 'librime-data')
makedepends=('boost' 'extra-cmake-modules' 'git')
conflicts=('fcitx-rime' 'fcitx5-rime')
provides=('fcitx5-rime')
source=("git+$url.git")
sha512sums=('SKIP')

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

build(){
  cd fcitx5-rime

  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=/usr/lib .
  make
}

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