0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

MSYS2上で動作するnkfコマンドのパッケージを普通にmakeする

Last updated at Posted at 2020-06-18

↓がうまくいかなかったので、別の方法
MSYS2上で動作するnkfコマンドのパッケージを作成する

捻ったことはなく、普通にmakeする方法です。

スクリプト

nkf.exeを作成
$ mkdir -p ~/abs/nkf && cd $_  # absディレクトリ作って移動
$ curl -fsSL https://ja.osdn.net/projects/nkf/downloads/70406/nkf-2.1.5.tar.gz/ -o - | tar xzv  # ダウンロードして解凍
$ cd nkf-2.1.5
$ make install

スクリプトの解説

  • Archlinux Wiki パッケージの作成によると PKGBUILD置くところは~/abs/[パッケージ名]が推奨 とのことでした。
  • curl -fsSL [URL] -o - はダウンロード先を標準出力に吐き出すコマンド
  • パイプしてtar xzvは標準入力から受け取ったtar.gzファイルを解凍するコマンド
  • それ以外はディレクトリ作ったり、移動したり、makeしてできたexeをパスの通った場所にコピーするだけです。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?