updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / ekg2-git / PKGBUILD
bloba49ff49ccb2b3f32f5fd3a5da67d680bd1b5cef7
1 # Maintainer: Bartek Piotrowski <barthalion@gmail.com>
3 pkgname=ekg2-git
4 pkgver=20110604
5 pkgrel=1
6 pkgdesc="Ncurses based Jabber, Gadu-Gadu, Tlen and IRC client. Latest GIT snapshot."
7 arch=('i686' 'x86_64')
8 url="http://ekg2.org/"
9 license=('GPL')
10 depends=('aspell' 'libjpeg' 'python2' 'libgadu' 'gnutls' 'gpm' 'libidn' 'giflib' 'gpgme')
11 optdepends=( 'xosd: for xosd support'
12                  'sqlite3: sqlite support')
13 provides=('ekg2-unicode' 'ekg2')
14 conflicts=('ekg2' 'ekg2-unicode-svn')
16 _gitroot="git://github.com/Enlik/ekg2.git"
17 _gitname="ekg2"
19 build() {
20     cd "$srcdir"
21     msg "Connecting to GIT server..."
23     if [ -d $_gitname ] ; then
24         cd $_gitname && git pull origin
25         msg "The local files are updated."
26     else
27         git clone $_gitroot $_gitname
28     fi
29     msg "GIT checkout done or server timeout."
31     rm -rf "$srcdir/$_gitname-build"
32     git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33     cd "$srcdir/$_gitname-build"
34     
35     ./autogen.sh
36     sed -i 's|ncursesw/ncurses.h|ncurses.h|g' configure plugins/ncurses/ecurses.h
37     ./configure --prefix=/usr \
38                 --sysconfdir=/etc \
39                 --with-libgadu \
40                 --with-xosd \
41                 --without-gtk \
42                 --enable-unicode \
43                 --enable-shared \
44                 --without-gpg
45     make
48 package() {
49     cd "$srcdir/$_gitname-build"
50     make DESTDIR=$pkgdir install
51     rm -rf $pkgdir/usr/lib/perl5/core_perl/perllocal.pod
52 #   mv $pkgdir/usr/libexec/ioctld $pkgdir/usr/lib/ekg2/ioctld
53     rm -rf $pkgdir/usr/libexec
54     chmod -R 755 $pkgdir/usr/lib/perl5