mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-01-17 23:34:07 +00:00
community/opencc to 1.1.3-1
This commit is contained in:
parent
2f57e0a31f
commit
fe8dbd62b1
2 changed files with 12 additions and 24 deletions
|
@ -5,30 +5,28 @@
|
||||||
|
|
||||||
pkgbase=opencc
|
pkgbase=opencc
|
||||||
pkgname=(opencc opencc-doc)
|
pkgname=(opencc opencc-doc)
|
||||||
pkgver=1.1.2
|
pkgver=1.1.3
|
||||||
pkgrel=3
|
pkgrel=1
|
||||||
pkgdesc="Library for Open Chinese Convert"
|
pkgdesc="Library for Open Chinese Convert"
|
||||||
url="https://github.com/BYVoid/OpenCC"
|
url="https://github.com/BYVoid/OpenCC"
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
license=('Apache')
|
license=('Apache')
|
||||||
makedepends=('chrpath' 'cmake' 'darts' 'doxygen' 'marisa' 'pybind11' 'python-setuptools'
|
makedepends=('chrpath' 'cmake' 'darts' 'doxygen' 'marisa' 'pybind11' 'python-setuptools'
|
||||||
'python-wheel' 'rapidjson' 'tclap')
|
'python-wheel' 'rapidjson' 'tclap' 'gtest')
|
||||||
source=("https://github.com/BYVoid/OpenCC/archive/ver.$pkgver/$pkgbase-$pkgver.tar.gz"
|
source=("https://github.com/BYVoid/OpenCC/archive/ver.$pkgver/$pkgbase-$pkgver.tar.gz")
|
||||||
fix-system-pybind11.patch)
|
sha512sums=('90da656fa4790c58932ad2240a076cc4a9e8cf70ac73d83e0d299e84472deb6491a823966a7686ed1487ef8405909981b9a12b661d8de7f086bd4b498594abac')
|
||||||
sha512sums=('56c84bc472b39eb0b23bac6df5aada2c2ed5fd2fbe653c1ae89d392ec0b74741a15de93c748883ec3c0779396e790a1197f6e3b267b524f111459d45daeb5d4b'
|
|
||||||
'e54bdc865505cacc79e05265ad82e05f35b246c62c68261e68aa51a862020848d39f6d6579abf56ed26edc6a0f5f21d39217ff80690047931037c55c4a59f594')
|
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
cd OpenCC-ver.$pkgver
|
cd OpenCC-ver.$pkgver
|
||||||
rm -r deps
|
rm -r deps
|
||||||
patch -p1 -i ../fix-system-pybind11.patch
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd OpenCC-ver.$pkgver
|
cd OpenCC-ver.$pkgver
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DOCUMENTATION:BOOL=ON -DBUILD_PYTHON:BOOL=ON \
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_DOCUMENTATION:BOOL=ON -DBUILD_PYTHON:BOOL=ON \
|
||||||
-DUSE_SYSTEM_MARISA:BOOL=ON -DUSE_SYSTEM_PYBIND11:BOOL=ON -DUSE_SYSTEM_RAPIDJSON:BOOL=ON \
|
-DUSE_SYSTEM_MARISA:BOOL=ON -DUSE_SYSTEM_PYBIND11:BOOL=ON -DUSE_SYSTEM_RAPIDJSON:BOOL=ON \
|
||||||
-DUSE_SYSTEM_TCLAP:BOOL=ON -DUSE_SYSTEM_DARTS:BOOL=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
|
-DUSE_SYSTEM_TCLAP:BOOL=ON -DUSE_SYSTEM_DARTS:BOOL=ON -DENABLE_GTEST:BOOL=ON \
|
||||||
|
-DUSE_SYSTEM_GTEST:BOOL=ON -DCMAKE_INTERPROCEDURAL_OPTIMIZATION=OFF
|
||||||
make
|
make
|
||||||
|
|
||||||
mkdir python/opencc/clib
|
mkdir python/opencc/clib
|
||||||
|
@ -37,6 +35,11 @@ build() {
|
||||||
python setup.py build
|
python setup.py build
|
||||||
}
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd OpenCC-ver.$pkgver
|
||||||
|
make test
|
||||||
|
}
|
||||||
|
|
||||||
package_opencc() {
|
package_opencc() {
|
||||||
pkgdesc="Library for Open Chinese Convert"
|
pkgdesc="Library for Open Chinese Convert"
|
||||||
depends=('marisa')
|
depends=('marisa')
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
||||||
index d4b6530..cfc02c7 100644
|
|
||||||
--- a/CMakeLists.txt
|
|
||||||
+++ b/CMakeLists.txt
|
|
||||||
@@ -219,9 +219,7 @@ endif()
|
|
||||||
|
|
||||||
if (BUILD_PYTHON)
|
|
||||||
if(USE_SYSTEM_PYBIND11)
|
|
||||||
- include(pybind11Config)
|
|
||||||
- include(pybind11Common)
|
|
||||||
- include(pybind11Tools)
|
|
||||||
+ find_package(pybind11 CONFIG)
|
|
||||||
else()
|
|
||||||
add_subdirectory(deps/pybind11-2.5.0)
|
|
||||||
endif()
|
|
Loading…
Reference in a new issue