You are not logged in.

#1 2005-02-21 14:50:57

WaFuSan
Member
From: Nagoya
Registered: 2005-01-27
Posts: 39
Website

kanjipad

Kanjipad recognizes kanji you draw with the mouse or whatever you use for drawing big_smile
It can be run as a stand alone, or integrated into gjiten
http://bbs.archlinux.org/viewtopic.php?t=10035

There is no configure script coming with kanjipad, a simple modification has to be done to the makefile.
By the way, can someone explain to me why

sed 's/usr/local/usr/g' Makefile > Makefile 

produces an empty file ??

PKGBUILD

# Contributer: David Mezerette <david.mezerette@lapis.plala.or.jp>
pkgname=kanjipad
pkgver=1.2.1
pkgrel=1
pkgdesc="A program for handwriting recognition"
depends=('gtk>=1.2.0')
install=
url="http://www.gtk.org/~otaylor/kanjipad/"
license=GPL
source=(ftp://ftp.gtk.org/pub/users/otaylor/$pkgname/$pkgname-$pkgver.tar.gz)


build() {
  cd $startdir/src/$pkgname-$pkgver
  sed 's/usr/local/usr/g' Makefile > Makefile.temp 
  cp Makefile.temp Makefile
  rm Makefile.temp
  make || return 1
  make DESTDIR=$startdir/pkg/ install
} 

Offline

#2 2005-02-21 21:16:05

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: kanjipad

I cannot explain why because I don't have time to think, but I can tell you how to do this to avoid the empty file:

sed -i 's/usr/local/usr/g' Makefile

Offline

#3 2005-02-22 04:48:43

WaFuSan
Member
From: Nagoya
Registered: 2005-01-27
Posts: 39
Website

Re: kanjipad

Thanks for the advice smile
I have modified the PKGBUILD accordingly

# Contributer: David Mezerette <david.mezerette@lapis.plala.or.jp>
pkgname=kanjipad
pkgver=1.2.1
pkgrel=1
pkgdesc="A program for handwriting recognition"
depends=('gtk>=1.2.0')
install=
url="http://www.gtk.org/~otaylor/kanjipad/"
license=GPL
source=(ftp://ftp.gtk.org/pub/users/otaylor/$pkgname/$pkgname-$pkgver.tar.gz)


build() {
  cd $startdir/src/$pkgname-$pkgver
  sed -i 's/usr/local/usr/g' Makefile
  make || return 1
  make DESTDIR=$startdir/pkg/ install
} 

Offline

Board footer

Powered by FluxBB