archrelease: copy trunk to community-any
[ArchLinux/community.git] / fcitx5-chinese-addons / trunk / PKGBUILD
blobadcd7c09e9011c07635532ed2eab2e8767adf87d
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: csslayer <wengxt AT gmail com>
4 pkgname=fcitx5-chinese-addons
5 pkgver=5.0.17
6 pkgrel=1
7 pkgdesc="Addons related to Chinese, including IME previous bundled inside fcitx4"
8 arch=('x86_64')
9 url="https://github.com/fcitx/fcitx5-chinese-addons"
10 license=('GPL')
11 conflicts=('fcitx')
12 depends=('curl' 'fcitx5-qt' 'libime' 'opencc' 'qt5-webengine')
13 makedepends=('boost' 'extra-cmake-modules' 'fcitx5-lua' 'ninja')
14 optdepends=('fcitx5-lua: Lua and imeapi support from pinyin')
15 source=("https://download.fcitx-im.org/fcitx5/$pkgname/$pkgname-${pkgver}_dict.tar.xz"{,.sig})
16 sha512sums=('5c0b5034dcd7a3b12803edc6d64d7a0dd429179ab649db112040a1e147ce1e6169b360f5e7106e3b23d0e52a9bb2a8494e623b95aa0c3ec2a42f2adfff40547c'
17             'SKIP')
18 validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9') # Weng Xuetian <wengxt@gmail.com>
20 build() {
21   cd $pkgname-$pkgver
23   cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DUSE_WEBKIT=Off .
24   ninja
27 check() {
28   cd $pkgname-$pkgver
29   ninja test
32 package() {
33   cd $pkgname-$pkgver
34   DESTDIR="$pkgdir" ninja install