tree1.7.0をZaurus向けにビルド

前回作成したDocker上のZaurus開発環境を使用する kkimi.hatenablog.com

ダウンロード

$ mkdir -p src/tree
$ cd src/tree
$ wget http://mama.indstate.edu/users/ice/tree/src/tree-1.7.0.tgz
$ tar zxf tree-1.7.0.tgz

ipk向けのディレクトリ作成

Zaurusは/opt/QtPamtop以下へのインストールが推奨とどっかで見た気がする

$ mkdir -p ipk/opt/QtPalmtop
$ mkdir ipk/CONTROL

ビルド

configureがないのでMakefileを直接編集する

  1. インストール場所を変更する
  2. CCがgccに固定されているのでarm-linux-gccに変更する
$ cd tree-1.7.0
$ vi Makefile
-prefix = /usr
+prefix = /home/zaurus/src/tree/ipk/opt/QtPalmtop

-CC=gcc
+CC=arm-linux-gcc

VERSION=1.7.0
TREE_DEST=tree
$ make
$ make install

ipkパッケージ作成

$ cd ../
$ vi ipk/CONTROL/control

アプリの詳細を記述する
DescriptionはWikipediaとかからコピーでOK

Package: tree
Priority: optional
Section: base
Version: 1.7.0
Architecture: arm
Maintainer: kkimi
Depends:
Description: Tree is a recursive directory listing command that produces a depth
  indented listing of files, which is colorized ala dircolors if the LS_COLORS
  environment variable is set and output is to tty.
$ ipkg-build ipk

tree_1.7.0_arm.ipkができているのでZaurusにコピーしてインストールする

www.dropbox.com