Skip to content

Commit

Permalink
Update scripts (#256)
Browse files Browse the repository at this point in the history
install headers
  • Loading branch information
Riey authored Feb 15, 2021
1 parent f141dfa commit 47e268e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

## 1.0.3

* Rollback #247
* Rollback [#247](https://github.com/Riey/kime/issues/247)

## 1.0.2

Expand Down
2 changes: 2 additions & 0 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ cargo_build -p kime-xim -p kime-wayland -p kime-indicator
cp $TARGET_DIR/kime-xim $KIME_OUT
cp $TARGET_DIR/kime-wayland $KIME_OUT
cp $TARGET_DIR/kime-indicator $KIME_OUT
cp src/engine/cffi/kime_engine.h $KIME_OUT
cp src/engine/cffi/kime_engine.hpp $KIME_OUT
cp $TARGET_DIR/libkime_engine.so $KIME_OUT
cp LICENSE $KIME_OUT
cp res/default_config.yaml $KIME_OUT
Expand Down
7 changes: 7 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ if [ -z "$KIME_BIN_DIR" ]; then
KIME_BIN_DIR=usr/bin
fi

if [ -z "$KIME_INCLUDE_DIR" ]; then
KIME_INCLUDE_DIR=usr/include
fi

if [ -z "$KIME_CONFIG_DIR" ]; then
KIME_CONFIG_DIR=etc/xdg/kime
fi
Expand Down Expand Up @@ -59,9 +63,12 @@ install_bin kime-indicator
install_bin kime-xim
install_bin kime-wayland

install -Dm644 $KIME_OUT/kime_engine.h -t "$PREFIX/$KIME_INCLUDE_DIR"
install -Dm644 $KIME_OUT/kime_engine.hpp -t "$PREFIX/$KIME_INCLUDE_DIR"
install -Dm644 $KIME_OUT/default_config.yaml -T "$PREFIX/$KIME_CONFIG_DIR/config.yaml"
install -Dm644 $KIME_OUT/icons/* -t "$PREFIX/$KIME_DATA_DIR/icons"
install -Dm755 $KIME_OUT/libkime_engine.so -t "$PREFIX/$KIME_LIB_DIR"

install_if libkime-gtk2.so 755 -T "$KIME_GTK2_DIR/im-kime.so"
install_if libkime-gtk3.so 755 -T "$KIME_GTK3_DIR/im-kime.so"
install_if libkime-gtk4.so 755 -t "$KIME_GTK4_DIR"
Expand Down

0 comments on commit 47e268e

Please sign in to comment.