updated on Tue Jan 10 08:08:34 UTC 2012
[aur-mirror.git] / gwaei-git / PKGBUILD
blob435e3656355256a4875c3b33afeb110c5da5c789
1 # Maintainer: Patrice Peterson <runiq at archlinux dot us>
3 pkgname=gwaei-git
4 pkgver=20100724
5 pkgrel=1
6 pkgdesc="A Japanese-English dictionary program"
7 arch=('i686' 'x86_64')
8 url="http://gwaei.sourceforge.net"
9 license=('GPL3')
10 depends=('curl>=7.18.0' 'gconf>=2.22.0' 'hicolor-icon-theme'
11          'libsexy>=0.1.11' 'libunique>=1.0.0')
12 makedepends=('git' 'gnome-doc-utils>=0.13.0' 'pkgconfig>=0.9.0')
13 optdepends=('rsync: Provide incremental dictionary updates'
14             'ttf-arphic-ukai'
15             'ttf-kanjistrokeorders: Show stroke order diagrams')
16 provides=(gwaei)
17 conflicts=(gwaei)
19 _gitroot="git://gwaei.git.sourceforge.net/gitroot/gwaei/gwaei"
20 _gitname="gwaei"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   # temporary workaround until upstream has updated to gettext 0.18
41   gettextize --force
42   ./autogen.sh
43   ./configure --prefix=/usr --disable-schemas-install \
44     --with-gconf-schema-file-dir=/usr/share/gconf/schemas
45   make || return 1
46   make DESTDIR="$pkgdir/" install
47