Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -3715,7 +3715,7 @@ libgedit-amtk-5.so.0 libgedit-amtk-5.8.0_1
libgedit-gtksourceview-300.so.5 libgedit-gtksourceview-299.7.0_1
libgedit-gfls-1.so.0 libgedit-gfls-0.1.0_1
libgedit-tepl-6.so.4 libgedit-tepl-6.14.0_1
libchewing.so.3 libchewing-0.5.1_1
libchewing.so.3 libchewing-0.12.0_1
libdwarves.so.1 pahole-1.12_1
libdwarves_emit.so.1 pahole-1.12_1
libdwarves_reorganize.so.1 pahole-1.12_1
Expand Down
13 changes: 13 additions & 0 deletions srcpkgs/libchewing/patches/cross-build.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/data/dict/chewing/CMakeLists.txt b/data/dict/chewing/CMakeLists.txt
index 3d42fe3..4e87f10 100644
--- a/data/dict/chewing/CMakeLists.txt
+++ b/data/dict/chewing/CMakeLists.txt
@@ -5,7 +5,7 @@ foreach(TARGET ${TARGETS})
string(REPLACE "dat" "csv" SRC ${TARGET})
add_custom_command(
OUTPUT ${TARGET}
- COMMAND ${CHEWING_CLI} init --csv ${CMAKE_CURRENT_SOURCE_DIR}/${SRC} ${TARGET}
+ COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} ${CHEWING_CLI} init --csv ${CMAKE_CURRENT_SOURCE_DIR}/${SRC} ${TARGET}
DEPENDS ${SRC}
)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${TARGET} DESTINATION ${CMAKE_INSTALL_DATADIR}/libchewing)
23 changes: 0 additions & 23 deletions srcpkgs/libchewing/patches/cross-compile.patch

This file was deleted.

30 changes: 20 additions & 10 deletions srcpkgs/libchewing/template
Original file line number Diff line number Diff line change
@@ -1,27 +1,37 @@
# Template file for 'libchewing'
pkgname=libchewing
version=0.5.1
revision=5
version=0.12.0
revision=1
Comment thread
Duncaen marked this conversation as resolved.
_data_version=2026.3.22
build_style=cmake
build_helper="qemu"
hostmakedepends="texinfo"
makedepends="sqlite-devel"
build_helper=qemu
hostmakedepends="corrosion cargo"
makedepends="sqlite-devel rust-std"
short_desc="Intelligent phonetic (Zhuyin/Bopomofo) input method"
maintainer="Robert Stancil <robert.stancil@mavs.uta.edu>"
license="LGPL-2.1-only"
homepage="http://chewing.im/"
Comment thread
Duncaen marked this conversation as resolved.
distfiles="https://github.com/chewing/libchewing/releases/download/v${version}/${pkgname}-${version}.tar.bz2"
checksum=9708c63415fa6034435c0f38100e7d30d0e1bac927f67bec6dfeb3fef016172b
replaces="libchewing-data>=0"
changelog="https://codeberg.org/chewing/libchewing/raw/branch/master/NEWS"
distfiles="https://codeberg.org/chewing/libchewing/archive/v${version}.tar.gz
https://codeberg.org/chewing/libchewing-data/archive/v${_data_version}.tar.gz
"
checksum="151764f5448f0c9d4206c2d6f947e819d3517b692a3dafb88fc5fecd90ce9ec0
6bc29a7cb79eb1c68f3a42209c26b5b86aa6bbad71e71bc3091d27a7f4ddc6a3
"

skip_extraction="v${_data_version}.tar.gz"

post_extract() {
vsrcextract -C data v${_data_version}.tar.gz
}

libchewing-devel_package() {
depends="libchewing>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
Comment thread
Duncaen marked this conversation as resolved.
vmove "usr/lib/*.a"
vmove usr/lib/cmake
vmove "usr/lib/*.so"
vmove usr/share/info
}
}