summaryrefslogtreecommitdiff
path: root/community/opencc/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
committerroot <root@rshg054.dnsready.net>2013-07-19 01:10:32 -0700
commit8fbc0076a4827ddc6af92e0b9daa4c4c31450808 (patch)
tree03fd0e2921ebd53228d9a93e32ed3976b636cbea /community/opencc/PKGBUILD
parente445a313723389ba9ee1fded025c567dae5b21ea (diff)
Fri Jul 19 01:09:18 PDT 2013
Diffstat (limited to 'community/opencc/PKGBUILD')
-rw-r--r--community/opencc/PKGBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/community/opencc/PKGBUILD b/community/opencc/PKGBUILD
new file mode 100644
index 000000000..23122e818
--- /dev/null
+++ b/community/opencc/PKGBUILD
@@ -0,0 +1,41 @@
+# $Id: PKGBUILD 88293 2013-04-16 02:22:14Z fyan $
+# Maintainer: Felix Yan <felixonmars@gmail.com>
+
+pkgbase=opencc
+pkgname=(opencc opencc-doc)
+pkgver=0.4.2
+pkgrel=2
+url="http://code.google.com/p/opencc/"
+arch=('i686' 'x86_64')
+license=('Apache')
+makedepends=('cmake' 'doxygen')
+source=("http://opencc.googlecode.com/files/${pkgbase}-${pkgver}.tar.gz")
+
+build() {
+ cd "$srcdir/${pkgbase}-${pkgver}"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION:BOOL=ON
+ make
+}
+
+package_opencc() {
+ pkgdesc="Library for Open Chinese Convert"
+ depends=('glibc')
+
+ cd "$srcdir/${pkgbase}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ # Remove docs - install in splitted package
+ rm -r "$pkgdir/usr/share/opencc/doc"
+}
+
+package_opencc-doc() {
+ pkgdesc="Documentation for Library for Open Chinese Convert"
+
+ cd "$srcdir/${pkgbase}-${pkgver}/doc"
+ make DESTDIR="${pkgdir}" install
+
+ # Remove manpages - already installed in main package
+ rm -r "$pkgdir/usr/share/man"
+}
+
+md5sums=('d5c001098e824dae0e3debb1b864304b')