summaryrefslogtreecommitdiff
path: root/community/fcitx-libpinyin/PKGBUILD
blob: 875b3f05ff1c091b6da5b256091dcc8336d5749d (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
# $Id: PKGBUILD 81661 2012-12-26 06:37:02Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: poplarch <poplarch@gmail.com>

pkgname=fcitx-libpinyin
pkgver=0.2.1
pkgrel=3
pkgdesc="Fcitx Wrapper for libpinyin, Library to deal with pinyin"
arch=('i686' 'x86_64')
url="https://github.com/fcitx/fcitx-libpinyin"
license=('GPL')
depends=('fcitx>=4.2.0' 'libpinyin>=0.3.0')
makedepends=('cmake' 'intltool' 'wget')
provides=('fcitx-libpinyin')
source=("http://fcitx.googlecode.com/files/${pkgname}-${pkgver}.tar.xz")
install='fcitx-libpinyin.install'

build() {
  cd "$srcdir/${pkgname}-${pkgver}"

  rm -rf build
  mkdir build
  cd build

  msg "Starting make..."

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

package() {
  cd "$srcdir/${pkgname}-${pkgver}/build"
  make DESTDIR="${pkgdir}" install
}
md5sums=('9ff621f6f16ab426ff01652b1ffc06a7')