summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 149d40f50eebc5a6026527576d131eef155bb176 (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
# Maintainer: Jiachen YANG <farseerfc@archlinux.org>
# Contributor: csslayer <wengxt AT gmail com>

_pkgname=fcitx5-lua
pkgname="$_pkgname-git"
pkgver=r13.5fb96b6
pkgrel=1
pkgdesc="Lua support for fcitx5, with an imeapi addon implementing googlepinyin api"
arch=('i686' 'x86_64')
url="https://github.com/fcitx/$_pkgname"
license=('LGPL')
depends=('boost-libs' 'curl' 'fcitx5-git' 'gettext' 'lua')
makedepends=('boost' 'extra-cmake-modules' 'git')
conflicts=("$_pkgname")
provides=("$_pkgname")
source=("git+$url.git")
sha512sums=('SKIP')

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

build(){
  cd $_pkgname

  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_LIBDIR=/usr/lib ..
  make
}

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