summaryrefslogtreecommitdiff
path: root/community/libgooglepinyin/PKGBUILD
blob: 7602313ba85f19dabf426b628fe82d690ce568ab (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
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Author: CSSlayer <wengxt@gmail.com>
# Contributor: Yangtse <yangtsesu@gmail.com> 

pkgname=libgooglepinyin
pkgver=0.1.2
pkgrel=1
pkgdesc="A fork from google pinyin on android"
arch=('i686' 'x86_64' 'mips64el')
url="http://code.google.com/p/libgooglepinyin"
license=('APACHE')
depends=('gcc-libs')
makedepends=('cmake')
source=(http://libgooglepinyin.googlecode.com/files/${pkgname}-${pkgver}.tar.bz2)

build() {
  cd "${srcdir}"

  msg "Starting make..."

  rm -rf "${srcdir}/build"
  cp -rf "${srcdir}/${pkgname}-${pkgver}" "$srcdir/build"
  cd "${srcdir}/build"

  cmake -DCMAKE_INSTALL_PREFIX=/usr . \
      -DENABLE_STATIC=Off
}

package() {
  cd "${srcdir}/build"
  make DESTDIR="${pkgdir}" install
}

md5sums=('d697aba08fdc0fe15c9d7b6096ca3b28')