[arch-commits] Commit in opencc/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 9 21:59:56 UTC 2018


    Date: Friday, November 9, 2018 @ 21:59:55
  Author: felixonmars
Revision: 404811

archrelease: copy trunk to community-staging-x86_64

Added:
  opencc/repos/community-staging-x86_64/
  opencc/repos/community-staging-x86_64/PKGBUILD
    (from rev 404809, opencc/trunk/PKGBUILD)

----------+
 PKGBUILD |   37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)

Copied: opencc/repos/community-staging-x86_64/PKGBUILD (from rev 404809, opencc/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-11-09 21:59:55 UTC (rev 404811)
@@ -0,0 +1,37 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=opencc
+pkgname=(opencc opencc-doc)
+pkgver=1.0.5
+_tag=ver.1.0.5
+pkgrel=2
+url="https://github.com/BYVoid/OpenCC"
+arch=('x86_64')
+license=('Apache')
+makedepends=('cmake' 'doxygen' 'python' 'git')
+source=("git+https://github.com/BYVoid/OpenCC.git#tag=$_tag")
+sha512sums=('SKIP')
+
+build() {
+  cd OpenCC
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCUMENTATION:BOOL=ON
+  make
+}
+
+package_opencc() {
+  pkgdesc="Library for Open Chinese Convert"
+  depends=('gcc-libs')
+
+  cd OpenCC
+  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 OpenCC/doc
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list