[arch-commits] Commit in opencc/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Fri May 22 14:10:21 UTC 2020
Date: Friday, May 22, 2020 @ 14:10:21
Author: felixonmars
Revision: 631570
archrelease: copy trunk to community-testing-x86_64
Added:
opencc/repos/community-testing-x86_64/
opencc/repos/community-testing-x86_64/PKGBUILD
(from rev 631569, opencc/trunk/PKGBUILD)
----------+
PKGBUILD | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
Copied: opencc/repos/community-testing-x86_64/PKGBUILD (from rev 631569, opencc/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2020-05-22 14:10:21 UTC (rev 631570)
@@ -0,0 +1,36 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgbase=opencc
+pkgname=(opencc opencc-doc)
+pkgver=1.1.1
+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=('48ccf61f63cf0a1c0fc484a52ae1d406a28949a52be7d7d1595e6aaf87f40ac47ea4697308441a9381f0cd6f404ee5a28b85a2fa2f288c4b3933be36f4a41363')
+
+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