summaryrefslogtreecommitdiff
path: root/community/skktools/PKGBUILD
blob: 4ea438a5260675ba12fc320d28f68bb4cc568cd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 94840 2013-07-31 05:14:59Z fyan $
# Maintainer: Felix Yan <felixonmars@gmail.com>
# Contributor: noonov <noonov@gmail.com>

pkgname=skktools
pkgver=1.3.3
pkgrel=2
pkgdesc="Dictionary maintenance tools for the SKK Japanese input method"
arch=('i686' 'x86_64')
url="http://openlab.ring.gr.jp/skk/"
license=('GPL2')
depends=('gdbm' 'glib2')
optdepends=('ruby' 'python2' 'perl')
source=(http://openlab.ring.gr.jp/skk/tools/${pkgname}-${pkgver}.tar.gz)
md5sums=('9011bf096ea3a408169729b54ca605f5')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  ./configure --prefix=/usr --with-gdbm
  make

  sed -i '1s|python|&2|' skk2cdb.py
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  make DESTDIR="${pkgdir}" install

  install -d "${pkgdir}/usr/share/skktools"
  cp -a -t "${pkgdir}/usr/share/skktools" \
    convert2skk dbm filters \
    saihenkan.rb skk2cdb.py skkdic-diff.scm unannotation.awk

  install -D -m644 skk-xml.el "${pkgdir}/usr/share/emacs/site-lisp/skk-xml.el"
}