1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 # Contributor: Licia Todd <tigrmesh at aol dot com>
3 # Contributor: Tim Zebulla <amon at faumrahrer dot de>
8 pkgdesc="Fast, light & extensible IRC client (curses UI)"
10 url="http://www.weechat.org/"
13 makedepends=('git' 'cmake' 'pkgconfig' 'perl' 'python2' 'lua' 'tcl' 'ruby' 'aspell')
14 optdepends=('perl' 'python2' 'lua' 'tcl' 'ruby' 'aspell')
19 _gitroot="git://git.sv.gnu.org/weechat.git"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 msg "First time connected - cloning repo, this may take a while..."
31 git clone $_gitroot $_gitname
34 msg "GIT checkout done or server timeout"
35 msg "Starting cmake..."
37 rm -rf "$srcdir/$_gitname-build"
38 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39 cd "$srcdir/$_gitname-build"
44 cmake .. -DPREFIX=/usr \
45 -DPYTHON_EXECUTABLE=/usr/bin/python2 \
46 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so
50 cd "$srcdir/$_gitname-build/build"
52 make DESTDIR="${pkgdir}/" install