summaryrefslogtreecommitdiff
path: root/community/ibus-chewing/PKGBUILD
blob: c677bd4ae184f9b60598f726980534235ea130a5 (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
37
38
# $Id: PKGBUILD 56294 2011-10-05 06:10:32Z ebelanger $
# Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: Rainy <rainylau(at)gmail(dot)com>
# Contributor: Lee.MaRS <leemars@gmail.com>
# Contributor: Hiroshi Yui <hiroshiyui@gmail.com>

pkgname=ibus-chewing
pkgver=1.3.9.2
pkgrel=5
pkgdesc='Chinese Chewing Engine for IBus Framework'
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
url='http://ibus.googlecode.com'
depends=('ibus' 'libchewing' 'libxtst' 'gconf')
makedepends=('swig' 'cmake' 'gob2')
install=ibus-chewing.install
source=(http://ibus.googlecode.com/files/${pkgname}-${pkgver}-Source.tar.gz
        ibus-chewing-696864-abrt-ibus-1.4.patch)
md5sums=('8d177d67647944f5d1f9cca0654eaccb'
         '4bc83c143243a4fc5aa6a6e6fb0a3aa1')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}-Source"
  patch -p1 -i "${srcdir}/ibus-chewing-696864-abrt-ibus-1.4.patch"
  cmake \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DSYSCONF_INSTALL_DIR=/usr/share \
    -DLIBEXEC_DIR=/usr/lib/ibus \
    .

  make
}

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

  make DESTDIR="${pkgdir}" install
}