blob: b80a1c2f3e8f387be2073692c96b507bbdb80f98 (
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
|
# $Id: PKGBUILD 226039 2017-04-27 13:52:30Z felixonmars $
# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: csslayer <wengxt AT gmail com>
_pkgname=fcitx5-chinese-addons
pkgname=${_pkgname}-git
pkgver=5.1.4.r12.g4208c4f
pkgrel=2
pkgdesc="Addons related to Chinese, including IME previous bundled inside fcitx4"
arch=('i686' 'x86_64')
url="https://github.com/fcitx/fcitx5-chinese-addons"
license=('GPL')
depends=('curl' 'libime-git' 'qt6-webengine' 'fcitx5-qt6-git' 'opencc')
makedepends=('boost' 'extra-cmake-modules' 'git' 'fcitx5-lua-git' 'ninja' 'fmt')
optdepends=('fcitx5-lua-git: Lua and imeapi support from pinyin')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("git+$url.git")
sha512sums=('SKIP')
pkgver() {
cd fcitx5-chinese-addons
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build(){
cd fcitx5-chinese-addons
cmake -GNinja -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib -DUSE_WEBKIT=off .
ninja
}
package() {
cd fcitx5-chinese-addons
DESTDIR="$pkgdir" ninja install
}
|