summaryrefslogtreecommitdiff
path: root/community/opencc/PKGBUILD
blob: ae94dce10e43590fd66dad69e1bcc9879472de09 (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
# $Id: PKGBUILD 79884 2012-11-14 13:43:08Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>

pkgname=opencc
pkgver=0.3.0
pkgrel=1
pkgdesc="Library for Open Chinese Convert"
arch=('i686' 'x86_64')
url="http://code.google.com/p/opencc/"
license=('Apache')
depends=('glibc')
makedepends=('cmake')
source=("http://opencc.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")

build() {
  cd "$srcdir/${pkgname}-${pkgver}"
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  make
}

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