updated on Wed Jan 25 16:08:47 UTC 2012
[aur-mirror.git] / weechat-git / PKGBUILD
blobceeaf86b33fdf6b0ee165f857968394dc30d406f
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>
5 pkgname=weechat-git
6 pkgver=20111010
7 pkgrel=1
8 pkgdesc="Fast, light & extensible IRC client (curses UI)"
9 arch=('i686' 'x86_64')
10 url="http://www.weechat.org/"
11 license=('GPL3')
12 depends=('gnutls')
13 makedepends=('git' 'cmake' 'pkgconfig' 'perl' 'python2' 'lua' 'tcl' 'ruby' 'aspell')
14 optdepends=('perl' 'python2' 'lua' 'tcl' 'ruby' 'aspell')
15 provides=('weechat')
16 conflicts=('weechat')
17 options=(!libtool)
19 _gitroot="git://git.sv.gnu.org/weechat.git"
20 _gitname="weechat"
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     msg "First time connected - cloning repo, this may take a while..."
31     git clone $_gitroot $_gitname
32   fi
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"
41   mkdir build
42   cd build
44   cmake .. -DPREFIX=/usr \
45         -DPYTHON_EXECUTABLE=/usr/bin/python2 \
46         -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so
49 package() {
50   cd "$srcdir/$_gitname-build/build"
52   make DESTDIR="${pkgdir}/" install