Back in business (;
[cruxpl-ports:cruxpl-ports.git] / ekg2 / Pkgfile
1 # Description:  Ncurses based Jabber, Gadu-Gadu, Tlen and IRC client 
2 # URL:          http://ekg2.org/
3 # Maintainer:   Marcin Karpezo, sirmacik at crux dot org dot pl
4 # Packager:     Marcin Karpezo, sirmacik at crux dot org dot pl
5 # Depends on:   libgadu python gpm libidn gnutls expat libjpeg 
6
7 name=ekg2
8 version=20101227
9 release=1
10 source=(http://pl.ekg2.org/archive/$name-$version.tar.bz2)
11
12 build(){
13     local _OPTS="--prefix=/usr
14                 --mandir=/usr/man
15                 --disable-nls
16                 --enable-shared
17                 --without-gpg
18                 --without-readline
19                 --without-gtk
20                 --with-ncurses=/usr/include
21                 --with-libgadu
22                 --enable-unicode
23                 --without-libgsm
24                 --build=i686-pc-linux-gnu
25                 --host=i686-pc-linux-gnu"
26     cd $name-$version
27     ./configure $_OPTS
28     sed -i -e 's@/\*\ #undef\ HAVE_NCURSES\ \*/@#define\ HAVE_NCURSES\ 1@' \
29            -e 's@/\*\ #undef\ HAVE_NCURSESW_NCURSES_H\ \*/@#define HAVE_NCURSESW_NCURSES_H\ 1@' ekg2-config.h
30     make
31     make DESTDIR=$PKG install
32     rm -rf $PKG/usr/lib/perl5/core_perl/perllocal.pod 
33     mv $PKG/usr/libexec/ioctld $PKG/usr/lib/ekg2/ioctld 
34     rm -rf $PKG/usr/libexec 
35     chmod -R 755 $PKG/usr/lib/perl5 
36 }
37