Felix Yan pushed to branch main at Arch Linux / Packaging / Packages / opencc
Commits:
b9924f23 by Felix Yan at 2026-06-29T22:16:23+08:00
upgpkg: 1.3.2-1
- - - - -
2 changed files:
- .SRCINFO
- PKGBUILD
Changes:
=====================================
.SRCINFO
=====================================
@@ -1,6 +1,6 @@
pkgbase = opencc
pkgdesc = Library for Open Chinese Convert
- pkgver = 1.3.1
+ pkgver = 1.3.2
pkgrel = 1
url = https://github.com/BYVoid/OpenCC
arch = x86_64
@@ -20,8 +20,8 @@ pkgbase = opencc
makedepends = rapidjson
makedepends = tclap
makedepends = gtest
- source = git+https://github.com/BYVoid/OpenCC.git#tag=ver.1.3.1
- sha512sums =
fea19624eb8b22a73d4b9a9de8f9ab4c3999fb8acc2f60f0835b7ebe8f6bd353903d8d174ca165cce4f1511ab324808e40b4e965b05382df1462cb884ce26a78
+ source = git+https://github.com/BYVoid/OpenCC.git#tag=ver.1.3.2
+ sha512sums =
674fd09fc4adc02fa13af8737e67a06836c9676a9c25f8c9ed57e97f832b88a71be39800fc4041ff8de207930acc6766ab50cd94286abfdecf0778109406223a
pkgname = opencc
pkgdesc = Library for Open Chinese Convert
=====================================
PKGBUILD
=====================================
@@ -2,7 +2,7 @@
pkgbase=opencc
pkgname=(opencc opencc-doc)
-pkgver=1.3.1
+pkgver=1.3.2
pkgrel=1
pkgdesc="Library for Open Chinese Convert"
url="https://github.com/BYVoid/OpenCC"
@@ -11,7 +11,7 @@ license=('Apache-2.0')
makedepends=('git' 'chrpath' 'cmake' 'cppjieba' 'darts' 'doxygen' 'marisa'
'pybind11' 'python-setuptools'
'python-build' 'python-installer' 'python-wheel' 'rapidjson'
'tclap' 'gtest')
source=("git+https://github.com/BYVoid/OpenCC.git#tag=ver.$pkgver")
-sha512sums=('fea19624eb8b22a73d4b9a9de8f9ab4c3999fb8acc2f60f0835b7ebe8f6bd353903d8d174ca165cce4f1511ab324808e40b4e965b05382df1462cb884ce26a78')
+sha512sums=('674fd09fc4adc02fa13af8737e67a06836c9676a9c25f8c9ed57e97f832b88a71be39800fc4041ff8de207930acc6766ab50cd94286abfdecf0778109406223a')
prepare() {
cd OpenCC
@@ -23,6 +23,9 @@ prepare() {
# Reuse prebuilt python extension in wheel flow, avoid a second CMake build.
sed -i 's|import os|import glob\nimport os|' setup.py
sed -i 's|^ build_libopencc(output_path)$|
os.makedirs(output_path, exist_ok=True)\n
shutil.copy2(glob.glob(os.path.join(_this_dir, "opencc_clib.*.so"))[0],
output_path)|' setup.py
+
+ # Keep the native CLI installed by CMake instead of the Python wrapper.
+ sed -i '/^ entry_points={$/,/^ },$/d' setup.py
}
build() {
@@ -39,7 +42,8 @@ build() {
check() {
cd OpenCC
- make test
+ # This integration test asserts upstream's bundled cppjieba dictionary
output.
+ ctest --output-on-failure -E '^JiebaPluginIntegrationTest$'
}
package_opencc() {
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/opencc/-/commit/b9924f23e3bbef4fcdc1a96808bc6b302efba642
--
View it on GitLab:
https://gitlab.archlinux.org/archlinux/packaging/packages/opencc/-/commit/b9924f23e3bbef4fcdc1a96808bc6b302efba642
You're receiving this email because of your account on gitlab.archlinux.org.
Manage all notifications: https://gitlab.archlinux.org/-/profile/notifications
| Help: https://gitlab.archlinux.org/help