upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / skktools / trunk / PKGBUILD
blobe04fa7e584b547b8b4ea55dc4d425d4ce902cbe5
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: noonov <noonov@gmail.com>
4 pkgname=skktools
5 pkgver=1.3.4
6 pkgrel=4
7 pkgdesc="Dictionary maintenance tools for the SKK Japanese input method"
8 arch=('x86_64')
9 url="http://openlab.ring.gr.jp/skk/"
10 license=('GPL2')
11 depends=('gdbm' 'glib2')
12 optdepends=('ruby' 'python: for skk2cdb.py' 'perl')
13 source=(http://openlab.ring.gr.jp/skk/tools/${pkgname}-${pkgver}.tar.gz
14         skktools-skk2cdb-python3.patch::https://github.com/skk-dev/skktools/commit/dfde96678a4a9f086c50e8130ca61e68af428663.patch)
15 sha512sums=('8749dfc4f18474db860d8b7cd85fadfc00327b199addb31a339aa78dd66cb98032429664bdad4b47176b5b64b156b7264bc35a284861f6b9ec8cc9979d4d5ce1'
16             'f45c77da33a9135ca8fec81bb7fb2df667b9fcbbd3e7ebc25dcfee4cdfe24b88cb8161af8742ee06ba697819caaae4c45277fd13de3ccf70e44efa7dc99bf8d5')
18 prepare() {
19   mv skktools-skktools-1_3_4 $pkgname-$pkgver
20   cd $pkgname-$pkgver
21   patch -p1 -i ../skktools-skk2cdb-python3.patch
24 build() {
25   cd $pkgname-$pkgver
27   ./configure --prefix=/usr --with-gdbm
28   make
31 package() {
32   cd $pkgname-$pkgver
34   make DESTDIR="$pkgdir" install
36   install -d "$pkgdir"/usr/share/skktools
37   cp -a -t "$pkgdir"/usr/share/skktools \
38     convert2skk dbm filters \
39     saihenkan.rb skk2cdb.py skkdic-diff.scm unannotation.awk
41   install -D -m644 skk-xml.el "$pkgdir"/usr/share/emacs/site-lisp/skk-xml.el