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

Felix Yan felixonmars at archlinux.org
Wed May 13 19:23:22 UTC 2020


    Date: Wednesday, May 13, 2020 @ 19:23:21
  Author: felixonmars
Revision: 627756

archrelease: copy trunk to community-testing-x86_64

Added:
  opencc/repos/community-testing-x86_64/
  opencc/repos/community-testing-x86_64/PKGBUILD
    (from rev 627755, opencc/trunk/PKGBUILD)

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

Copied: opencc/repos/community-testing-x86_64/PKGBUILD (from rev 627755, opencc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2020-05-13 19:23:21 UTC (rev 627756)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=opencc
+pkgname=(opencc opencc-doc)
+pkgver=1.1.0
+pkgrel=1
+url="https://github.com/BYVoid/OpenCC"
+arch=('x86_64')
+license=('Apache')
+makedepends=('cmake' 'doxygen' 'python')
+source=("https://github.com/BYVoid/OpenCC/archive/ver.$pkgver/$pkgbase-$pkgver.tar.gz")
+sha512sums=('c5d95e84e0c8edf600f441b79431f721e721b1028619170e27fbc762da32c9ef99c9d28c2c5eaf34226d23a24e2fe5e494cedb28f1182acb06f94b72d7cbb52c')
+
+build() {
+  cd OpenCC-ver.$pkgver
+  cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DOCUMENTATION:BOOL=ON
+  make
+}
+
+package_opencc() {
+  pkgdesc="Library for Open Chinese Convert"
+  depends=('gcc-libs')
+
+  cd OpenCC-ver.$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 OpenCC-ver.$pkgver/doc
+  make DESTDIR="${pkgdir}" install
+}


More information about the arch-commits mailing list