diff options
author | root <root@rshg054.dnsready.net> | 2013-04-17 00:05:54 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-04-17 00:05:54 -0700 |
commit | 0f02baec6afdab918d86a226ee9a984482b5a534 (patch) | |
tree | 15cb1e77a0a46bc218404a4725caeda3089039f8 /community/opencc/PKGBUILD | |
parent | 975d6f489c6c43bbc7b816ac43333c54c1f4df21 (diff) |
Wed Apr 17 00:05:54 PDT 2013
Diffstat (limited to 'community/opencc/PKGBUILD')
-rw-r--r-- | community/opencc/PKGBUILD | 40 |
1 files changed, 28 insertions, 12 deletions
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 <felixonmars@gmail.com> -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') |