updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / gjiten / PKGBUILD
blob477285365fae85b5e725d05afdae1b5c095f5c03
1 # Maintainer: Andre Wayand <aur-gjiten at awayand dot sleepmail dot com>
2 # Contributor: Branko Vukelic <bg.branko@gmail.com>
4 pkgname=gjiten
5 pkgver=2.6
6 pkgrel=5
7 pkgdesc="Japanese and kanji dictionary program for GNOME"
8 arch=('i686' 'x86_64')
9 url="http://gjiten.sourceforge.net/"
10 license=('GPL')
11 #depends=('gtk2' 'libgnome>=2.2.0' 'libgnomeui>=2.2.0' 'libglade>=2.0' 'gconf>=2.0')
12 depends=('libgnomeui>=2.2.0')
13 makedepends=('lynx' 'xmlto' 'perlxml' 'docbook-xsl')
14 optdepends=(
15   'perl: install extra dictionaries'
16   'kanjipad: handwritten kanji lookup'
17   'scim-anthy: japanese input'
19 install=gjiten.install
20 source=(
21   http://gjiten.sourceforge.net/$pkgname-$pkgver.tar.gz
22   http://gjiten.sourceforge.net/dictfiles/edict
23   http://gjiten.sourceforge.net/dictfiles/kanjidic
24   getdics-updurl.diff
26 md5sums=('44a5d9640e37d8b0547f9c7e3d7ac67a'
27          '56aef34061ede99977d87810524a8ab2'
28          'd872fa6f0dbcbf901dad8bd8cb1066ef'
29          '1b8dfd15373833856499aad20eac165e')
31 build() {
32  cd "${srcdir}/${pkgname}-${pkgver}"
33  patch -uN dicfiles/getdics.pl ${srcdir}/getdics-updurl.diff
34  ./configure --with-gconf-schema-file-dir=/usr/share/gconf/schemas --prefix=/usr
35  make
38 package() {
39  cd "${srcdir}/${pkgname}-${pkgver}"
40  make DESTDIR="${pkgdir}" install
42  msg "Installing extra dictionary script"
43  install -d "${pkgdir}"/usr/share/gjiten/dicfiles
44  install -Dm0644 -t "${pkgdir}"/usr/share/gjiten/dicfiles dicfiles/{getdics.pl,Makefile,Makefile.am,Makefile.in}
46  msg "Installing dictionaries"
47  cd "${srcdir}"
48  install -Dm0644 edict "${pkgdir}"/usr/share/gjiten/dics/edict
49  install -m0644 kanjidic "${pkgdir}"/usr/share/gjiten/dics/kanjidic