Skip to content

Commit

Permalink
Build arch pkg for only Korean
Browse files Browse the repository at this point in the history
  • Loading branch information
chaeya committed Jul 26, 2024
1 parent 5489e0f commit 2c86268
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 7 deletions.
44 changes: 44 additions & 0 deletions PKGBUILD.ko
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Maintainer: Kevin Kim <root@hamonikr.org>

pkgname=nimf
pkgver=1.3.8
pkgrel=2
pkgdesc="Nimf is an input method framework."
arch=('any')
url="https://github.com/hamonikr/nimf"
license=('LGPL3')
makedepends=('binutils' 'autoconf' 'automake' 'gcc' 'make' 'glib2' 'glib2-devel' 'intltool'
'gtk3' 'gtk2' 'qt5-base' 'qt6-base' 'libappindicator-gtk3' 'libayatana-appindicator' 'librsvg'
'noto-fonts-cjk' 'libhangul-git' 'anthy' 'librime' 'libxkbcommon'
'wayland' 'wayland-protocols' 'libxklavier' 'm17n-lib' 'm17n-db' 'gtk-doc')
depends=('glib2' 'gtk3' 'gtk2' 'qt5-base' 'qt6-base' 'libappindicator-gtk3' 'libhangul-git' 'libxkbcommon' 'wayland' 'libxklavier')
provides=('nimf-git')
conflicts=('nimf-git')
optdepends=('brise: Rime schema repository'
'noto-fonts-cjk: Google Noto CJK fonts')
source=("git+https://github.com/hamonikr/nimf.git#tag=v1.3.8")
md5sums=('SKIP')

build() {
cd nimf
./autogen.sh --prefix=/usr --enable-gtk-doc --disable-nimf-anthy --disable-nimf-m17n --disable-nimf-rime
make -j $(nproc)
}

package() {
cd nimf
make DESTDIR="${pkgdir}/" install
}

post_install() {
cat <<EOF
To use Nimf as your input method framework, add the following lines to your ~/.xprofile:

export GTK_IM_MODULE=nimf
export QT4_IM_MODULE="nimf"
export QT_IM_MODULE=nimf
export QT6_IM_MODULE=nimf
export XMODIFIERS="@im=nimf"

EOF
}
41 changes: 34 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ sudo apt install libnimf1 nimf nimf-anthy nimf-dev nimf-libhangul nimf-m17n nimf
wget https://github.com/hamonikr/nimf/releases/download/v1.3.8/nimf-1.3.8-1-any.pkg.tar.zst
sudo pacman -U ./nimf-1.3.8-1-any.pkg.tar.zst
# If you want to install only Korean
wget https://github.com/hamonikr/nimf/releases/download/v1.3.8/nimf-1.3.8-2-any.pkg.tar.zst
sudo pacman -U ./nimf-1.3.8-2-any.pkg.tar.zst
```

2) im setting
Expand Down Expand Up @@ -184,20 +190,19 @@ sudo apt install libnimf1 nimf nimf-anthy nimf-dev nimf-libhangul nimf-m17n nimf
```
# 최신 libhangul-git 패키지 설치
git clone https://aur.archlinux.org/libhangul-git.git
cd libhangul-git
makepkg -si
# nimf 설치
git clone https://github.com/hamonikr/nimf.git
cd nimf
wget https://github.com/hamonikr/nimf/releases/download/v1.3.8/nimf-1.3.8-1-any.pkg.tar.zst
sudo pacman -U ./nimf-1.3.8-1-any.pkg.tar.zst
makepkg -si
# 한국어만 사용하고 싶은 경우
wget https://github.com/hamonikr/nimf/releases/download/v1.3.8/nimf-1.3.8-2-any.pkg.tar.zst
sudo pacman -U ./nimf-1.3.8-2-any.pkg.tar.zst
```

2) 입력기 설정
2) 환경변수 설정
```
vi ~/.xprofile
Expand Down Expand Up @@ -232,6 +237,28 @@ sudo rpm -ivh ./nimf-1.3.8-2.opensuse_leap.kr.x86_64.rpm
```

## 패키지 제작

자세한 내용은 [BUILD.md](BUILD.md) 문서의 아래 섹션을 참고하세요:

- [데비안 패키지 만들기](BUILD.md#debian-package)
- [Arch 패키지 만들기](BUILD.md#arch-linux-package)
- [RPM 패키지 만들기](BUILD.md#rpm-package)
- [OpenSUSE 패키지 만들기](BUILD.md#opensuse)
- [소스코드 컴파일 및 설치](BUILD.md#Build-from-Source)
- [디버깅 방법](BUILD.md#Debugging)


### 빌드 관련 다른 문서들
* Manjaro : https://github.com/hamonikr/nimf/wiki/Manjaro-build
* CentOS 8 : https://blog.naver.com/dfnk5516/222074913406
* Raspberry pi 4 arm64 : https://github.com/hamonikr/nimf/wiki/Install-nimf-on-raspberry-pi-4---arm64
* Armbian : https://github.com/hamonikr/nimf/wiki/Armbian-build
* Manjaro ARM : https://github.com/hamonikr/nimf/wiki/Manjaro-build
* Arch AUR : https://aur.archlinux.org/packages/nimf-git/
* Others : https://github.com/hamonikr/nimf/wiki/How-to-Build-and-Install-with-Others-Distro


# LICENSE
* GNU Lesser General Public License v3.0 ([한글 해석](https://olis.or.kr/license/Detailselect.do?lId=1073))

Expand Down

0 comments on commit 2c86268

Please sign in to comment.