archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / fcitx-sunpinyin / trunk / PKGBUILD
blobbfddf0a1a1024ca617205779c5f1e7a0dd70783a
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=fcitx-sunpinyin
4 pkgver=0.4.2
5 pkgrel=2
6 pkgdesc="Fcitx Wrapper for sunpinyin, Statistical Language Model based pinyin IME by Sun"
7 arch=('x86_64')
8 url="https://github.com/fcitx/fcitx-sunpinyin"
9 license=('GPL')
10 depends=('fcitx' 'sunpinyin' 'sunpinyin-data' 'gtk-update-icon-cache')
11 makedepends=('cmake')
12 source=("https://download.fcitx-im.org/$pkgname/$pkgname-$pkgver.tar.xz")  # {,.sig})
13 sha512sums=('8ade5d94e5227c0b72d2844c09c2699e4b8c66cecbd4107791168d27e15f68b28a4445bf42df7bd6fb44119ec42c5b574293bb417dcde8998578f0debd656a2a')
14 # validpgpkeys=('2CC8A0609AD2A479C65B6D5C8E8B898CBF2412F9')  # Weng Xuetian
16 prepare() {
17   mkdir -p build
20 build() {
21   cd build
23   cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ../$pkgname-$pkgver
24   make
27 package() {
28   cd build
29   make DESTDIR="$pkgdir" install