summaryrefslogtreecommitdiff
path: root/community/opencc/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/opencc/PKGBUILD')
-rw-r--r--community/opencc/PKGBUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/community/opencc/PKGBUILD b/community/opencc/PKGBUILD
new file mode 100644
index 000000000..ae94dce10
--- /dev/null
+++ b/community/opencc/PKGBUILD
@@ -0,0 +1,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')