From 0f02baec6afdab918d86a226ee9a984482b5a534 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 17 Apr 2013 00:05:54 -0700 Subject: Wed Apr 17 00:05:54 PDT 2013 --- community/opencc/PKGBUILD | 40 ++++++++++++++++++++++++++++------------ 1 file changed, 28 insertions(+), 12 deletions(-) (limited to 'community/opencc/PKGBUILD') diff --git a/community/opencc/PKGBUILD b/community/opencc/PKGBUILD index 4ddc9b982..23122e818 100644 --- a/community/opencc/PKGBUILD +++ b/community/opencc/PKGBUILD @@ -1,25 +1,41 @@ -# $Id: PKGBUILD 88240 2013-04-15 00:24:49Z fyan $ +# $Id: PKGBUILD 88293 2013-04-16 02:22:14Z fyan $ # Maintainer: Felix Yan -pkgname=opencc +pkgbase=opencc +pkgname=(opencc opencc-doc) pkgver=0.4.2 -pkgrel=1 -pkgdesc="Library for Open Chinese Convert" -arch=('i686' 'x86_64') +pkgrel=2 url="http://code.google.com/p/opencc/" +arch=('i686' 'x86_64') 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" } + +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') -- cgit v1.2.3-54-g00ecf