summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d713792acac5248f90e003dea6b2f0c92e8a773c (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-git
pkgver=r406.04cc37d
pkgrel=1
pkgdesc="Next generation of fcitx"
arch=('i686' 'x86_64')
url="https://gitlab.com/fcitx/fcitx5"
license=('GPL')
depends=('cairo' 'enchant' 'iso-codes' 'libgl' 'libxkbcommon-x11' 'pango' 'systemd' 'wayland'
         'wayland-protocols' 'xcb-imdkit-git' 'xcb-util-wm' 'libxkbfile'
    	 'fmt' 'libxkbfile' 'gdk-pixbuf2')
makedepends=('extra-cmake-modules' 'git')
source=("git+$url.git")
sha512sums=('SKIP')

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

build(){
  cd fcitx5

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

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