-
-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Install im-config entry * Set ubuntu docker * Update ci scripts * Workaround arch docker bug * Update CHANGELOG
- Loading branch information
Showing
17 changed files
with
200 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
FROM archlinux:base-devel | ||
|
||
WORKDIR /opt/kime | ||
|
||
# WORKAROUND for glibc 2.33 and old Docker | ||
# See https://github.com/actions/virtual-environments/issues/2658 | ||
# Thanks to https://github.com/lxqt/lxqt-panel/pull/1562 | ||
RUN patched_glibc=glibc-linux4-2.33-4-x86_64.pkg.tar.zst && \ | ||
curl -LO "https://repo.archlinuxcn.org/x86_64/$patched_glibc" && \ | ||
bsdtar -C / -xvf "$patched_glibc" | ||
|
||
RUN pacman -Syu --noconfirm | ||
RUN pacman -S --noconfirm --needed rust cmake clang llvm libxcb cairo | ||
RUN pacman -S --noconfirm --needed gtk2 gtk3 gtk4 | ||
RUN pacman -S --noconfirm --needed qt5-base qt6-base | ||
RUN pacman -S --noconfirm --needed libappindicator-gtk3 | ||
RUN pacman -S --noconfirm --needed git | ||
RUN mkdir -pv /opt/kime-out | ||
|
||
COPY ci ./ci | ||
COPY docs ./docs | ||
COPY scripts ./scripts | ||
COPY res ./res | ||
COPY src ./src | ||
COPY .git ./.git | ||
|
||
COPY Cargo.toml . | ||
COPY Cargo.lock . | ||
COPY LICENSE . | ||
|
||
RUN cargo fetch | ||
|
||
ENTRYPOINT [ "ci/build_xz.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
FROM ubuntu:20.04 | ||
|
||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
WORKDIR /opt/kime | ||
|
||
RUN apt-get update | ||
RUN apt-get install -y build-essential git gcc clang llvm cmake extra-cmake-modules cargo pkg-config | ||
RUN apt-get install -y libpango1.0-dev libcairo2-dev libgtk2.0-dev libgtk-3-dev libglib2.0 libxcb1 libappindicator3-dev | ||
RUN apt-get install -y qt5-default qtbase5-dev qtbase5-private-dev libqt5gui5 | ||
RUN mkdir -pv /opt/kime-out | ||
|
||
COPY ci ./ci | ||
COPY docs ./docs | ||
COPY scripts ./scripts | ||
COPY res ./res | ||
COPY src ./src | ||
COPY .git ./.git | ||
|
||
COPY Cargo.toml . | ||
COPY Cargo.lock . | ||
COPY LICENSE . | ||
|
||
RUN cargo fetch | ||
|
||
ENTRYPOINT [ "ci/build_deb.sh" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
|
||
scripts/build.sh -ar | ||
scripts/release-deb.sh /opt/kime-out |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
IM_CONFIG_SHORT="activate Kime" | ||
IM_CONFIG_LONG="Korean IME" | ||
|
||
package_auto () { | ||
package_status kime | ||
} | ||
|
||
package_menu () { | ||
package_status kime | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
if [ "$IM_CONFIG_PHASE" = 2 ]; then | ||
kime-xim & | ||
fi | ||
|
||
if [ "$IM_CONFIG_PHASE" = 1 ]; then | ||
XMODIFIERS="@im=kime" | ||
GTK_IM_MODULE=kime | ||
QT4_IM_MODULE=xim | ||
QT_IM_MODULE=kime | ||
CLUTTER_IM_MODULE=xim | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(GTK2 gtk+-2.0) | ||
|
||
if(${GTK2_FOUND} STREQUAL "0") | ||
return() | ||
endif() | ||
|
||
add_library(kime-gtk2 SHARED src/gtk.c src/immodule.c) | ||
if(GTK2_FOUND) | ||
add_library(kime-gtk2 SHARED src/gtk.c src/immodule.c) | ||
|
||
target_compile_definitions(kime-gtk2 PRIVATE GTK_DISABLE_DEPRECATED) | ||
target_include_directories(kime-gtk2 PRIVATE ${GTK2_INCLUDE_DIRS} ${KIME_INCLUDE}) | ||
target_link_directories(kime-gtk2 PRIVATE ${GTK2_LIBRARY_DIRS} ${KIME_LIB_DIRS}) | ||
target_link_libraries(kime-gtk2 PRIVATE ${GTK2_LIBRARIES} kime_engine) | ||
target_compile_definitions(kime-gtk2 PRIVATE GTK_DISABLE_DEPRECATED) | ||
target_include_directories(kime-gtk2 PRIVATE ${GTK2_INCLUDE_DIRS} ${KIME_INCLUDE}) | ||
target_link_directories(kime-gtk2 PRIVATE ${GTK2_LIBRARY_DIRS} ${KIME_LIB_DIRS}) | ||
target_link_libraries(kime-gtk2 PRIVATE ${GTK2_LIBRARIES} ${KIME_ENGINE}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(GTK3 gtk+-3.0) | ||
|
||
if(${GTK3_FOUND} STREQUAL "0") | ||
return() | ||
endif() | ||
|
||
add_library(kime-gtk3 SHARED ../gtk2/src/gtk.c ../gtk2/src/immodule.c) | ||
if(GTK3_FOUND) | ||
add_library(kime-gtk3 SHARED ../gtk2/src/gtk.c ../gtk2/src/immodule.c) | ||
|
||
target_include_directories(kime-gtk3 PRIVATE ${GTK3_INCLUDE_DIRS} ${KIME_INCLUDE}) | ||
target_link_directories(kime-gtk3 PRIVATE ${GTK3_LIBRARY_DIRS} ${KIME_LIB_DIRS}) | ||
target_link_libraries(kime-gtk3 ${GTK3_LIBRARIES} kime_engine) | ||
target_include_directories(kime-gtk3 PRIVATE ${GTK3_INCLUDE_DIRS} ${KIME_INCLUDE}) | ||
target_link_directories(kime-gtk3 PRIVATE ${GTK3_LIBRARY_DIRS} ${KIME_LIB_DIRS}) | ||
target_link_libraries(kime-gtk3 ${GTK3_LIBRARIES} ${KIME_ENGINE}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(GTK4 gtk4) | ||
pkg_check_modules(GTK4 QUIET gtk4) | ||
|
||
if(${GTK4_FOUND} STREQUAL "0") | ||
return() | ||
endif() | ||
|
||
add_library(kime-gtk4 SHARED src/gtk4.c ../gtk2/src/immodule.c) | ||
if(GTK4_FOUND) | ||
add_library(kime-gtk4 SHARED src/gtk4.c ../gtk2/src/immodule.c) | ||
|
||
target_include_directories(kime-gtk4 PRIVATE ${GTK4_INCLUDE_DIRS} ${KIME_INCLUDE}) | ||
target_link_directories(kime-gtk4 PRIVATE ${GTK4_LIBRARY_DIRS} ${KIME_LIB_DIRS}) | ||
target_link_libraries(kime-gtk4 PRIVATE ${GTK4_LIBRARIES} kime_engine) | ||
target_include_directories(kime-gtk4 PRIVATE ${GTK4_INCLUDE_DIRS} ${KIME_INCLUDE}) | ||
target_link_directories(kime-gtk4 PRIVATE ${GTK4_LIBRARY_DIRS} ${KIME_LIB_DIRS}) | ||
target_link_libraries(kime-gtk4 PRIVATE ${GTK4_LIBRARIES} ${KIME_ENGINE}) | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.