1 # Contributor: Alex Suykov <axs@ukr.net>
3 # Note about the third patch: xjdic will now try to load
4 # ~/.xjdicrc, if $HOME is set
5 # $XJDIC/xjdicrc, if $XJDIC is set
6 # /usr/share/xjdic/xjdicrc, if $XJDIC is not set
7 # in that order. I had to tweak it as the original logic,
8 # with system-wide config file taking precedence over
9 # user's, looked really strange.
14 pkgdesc="Japanese-English dictionary program"
15 arch=('i686' 'x86_64')
16 url="http://www.csse.monash.edu.au/~jwb"
18 makedepends=(make gcc)
19 source=(ftp://ftp.monash.edu.au/pub/nihongo/xjdic24.tgz \
24 md5sums=('4155c4613b6bf540d6cb26f3a7ed276a'
25 'e9a3249d7b884c20e8cb62856959daa1'
26 'b06804bb4f11009034ee0491458977ad'
27 '2dac45bae7dbef209a631b2c621ad211'
28 'd375b631c1e2ce09af1d39087b230dcf')
32 patch -p1 -i ${source[2]}
33 patch -p1 -i ${source[3]}
34 patch -p1 -i ${source[4]}
37 mkdir -p "$pkgdir/usr/bin"
38 mkdir -p "$pkgdir/usr/man/man1"
39 mkdir -p "$pkgdir/usr/share/xjdic/doc"
41 install -m 0755 exjdxgen xjdic_sa xjdic_cl xjdserver xjdxgen "$pkgdir/usr/bin"
42 install -m 0644 xjdic.1 "$pkgdir/usr/man/man1"
43 install -m 0644 xjdic*.{inf,install,WHATSNEW} "$pkgdir/usr/share/xjdic/doc"
44 install -m 0644 kanjstroke radkfile radicals.tm romkana.cnv vconj "$pkgdir/usr/share/xjdic"
45 install -m 0644 ${source[1]} "$pkgdir/usr/share/xjdic/xjdicrc"
48 # vim:set ts=2 sw=2 et: