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

pkgname=libime-jyutping-git
pkgver=r3.0278e17
pkgrel=1
pkgdesc="A library to support generic input method implementation"
arch=('i686' 'x86_64')
url="https://github.com/fcitx/libime-jyutping"
license=('GPL')
depends=('boost-libs' 'fcitx5-git')
makedepends=('boost' 'extra-cmake-modules' 'git' 'python')
source=("git+https://github.com/fcitx/libime-jyutping.git")
sha512sums=('SKIP')

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

prepare() {
  cd libime-jyutping
  git submodule update --init
}

build(){
  cd libime-jyutping

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

package() {
  cd libime-jyutping
  make DESTDIR="$pkgdir" install
}