summaryrefslogtreecommitdiff
path: root/community/opencc/PKGBUILD
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2013-04-19 12:40:04 +0200
committerMichał Masłowski <mtjm@mtjm.eu>2013-04-19 12:40:04 +0200
commitd186e96728bff4cc4873c59d48d01fe6eefe6131 (patch)
tree1eefcef8058414b07b2750f52d9746f5323472ff /community/opencc/PKGBUILD
parent84c217e2d9acc64713978324761816e2468b5292 (diff)
parent1fedf1f5d5351aefd88268cba7353c79adac9b8a (diff)
Merge branch 'master' of ssh://parabolagnulinux.org:1863/home/parabola/abslibre-pre-mips64el
Conflicts: community/collectd/PKGBUILD community/drivel/PKGBUILD community/fcitx-mozc/PKGBUILD community/gnomesu/PKGBUILD community/gnuchess/PKGBUILD community/gphpedit/PKGBUILD community/gsql/PKGBUILD community/libmatchbox/PKGBUILD community/lockfile-progs/PKGBUILD community/opencc/PKGBUILD community/roxterm/PKGBUILD community/uriparser/PKGBUILD community/xcircuit/PKGBUILD core/bison/PKGBUILD core/curl/PKGBUILD core/expat/PKGBUILD core/gcc/PKGBUILD core/gpm/PKGBUILD core/m4/PKGBUILD core/systemd/PKGBUILD core/tar/PKGBUILD extra/alsa-lib/PKGBUILD extra/alsa-utils/PKGBUILD extra/bitlbee/PKGBUILD extra/chkrootkit/PKGBUILD extra/fakechroot/PKGBUILD extra/farstream/PKGBUILD extra/freeglut/PKGBUILD extra/gob2/PKGBUILD extra/libcdio-paranoia/PKGBUILD extra/liblqr/PKGBUILD extra/libnl1/PKGBUILD extra/libpst/PKGBUILD extra/libwpd/PKGBUILD extra/xorg-server/PKGBUILD
Diffstat (limited to 'community/opencc/PKGBUILD')
-rw-r--r--community/opencc/PKGBUILD44
1 files changed, 30 insertions, 14 deletions
diff --git a/community/opencc/PKGBUILD b/community/opencc/PKGBUILD
index 5b764b1d6..ff1cf4e6a 100644
--- a/community/opencc/PKGBUILD
+++ b/community/opencc/PKGBUILD
@@ -1,25 +1,41 @@
-# $Id: PKGBUILD 85687 2013-03-05 05:00:24Z fyan $
+# $Id: PKGBUILD 88293 2013-04-16 02:22:14Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
-pkgname=opencc
-pkgver=0.4.0
-pkgrel=1
-pkgdesc="Library for Open Chinese Convert"
-arch=('i686' 'x86_64' 'mips64el')
+pkgbase=opencc
+pkgname=(opencc opencc-doc)
+pkgver=0.4.2
+pkgrel=2
url="http://code.google.com/p/opencc/"
+arch=('i686' 'x86_64' 'mips64el')
license=('Apache')
-depends=('glibc')
-makedepends=('cmake')
-source=("http://opencc.googlecode.com/files/${pkgname}-${pkgver}.tar.gz")
+makedepends=('cmake' 'doxygen')
+source=("http://opencc.googlecode.com/files/${pkgbase}-${pkgver}.tar.gz")
build() {
- cd "$srcdir/${pkgname}-${pkgver}"
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
+ cd "$srcdir/${pkgbase}-${pkgver}"
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION:BOOL=ON
make
}
-package() {
- cd "$srcdir/${pkgname}-${pkgver}"
+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"
}
-md5sums=('00a2de2314cd28fc8631c229fb3aa894')
+
+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')