summaryrefslogtreecommitdiffstats
path: root/weechat-git/PKGBUILD
blob: 6c18c93676d927745be5b577e9cd38af471d892e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: Licia Todd <tigrmesh at aol dot com>
# Contributor: Tim Zebulla <amon at faumrahrer dot de>

pkgname=weechat-git
pkgver=20091022
pkgrel=1
pkgdesc="Fast, light & extensible IRC client (curses UI)"
arch=('i686' 'x86_64')
url="http://weechat.flashtux.org"
license=('GPL3')
depends=('aspell' 'iksemel')
makedepends=('git' 'cmake')
optdepends=('tcl: tcl scripting support'
            'perl>=5.10: perl scripting support' 
            'python>=2.6: python scripting support' 
            'lua: lua scripting support')
provides=('weechat')
conflicts=('weechat')
options=(!strip)
install=weechatgit.install

_gitroot="git://git.sv.gnu.org/weechat.git"
_gitname="weechat"

build() {
  cd "$srcdir"
  msg "Connecting to GIT server...."

  if [ -d $_gitname ] ; then
    cd $_gitname && git pull origin
    msg "The local files are updated."
  else
    msg "First time connected - cloning repo, this may take a while..."
    git clone $_gitroot
  fi

  msg "GIT checkout done or server timeout"
  msg "Starting cmake..."

  rm -rf "$srcdir/$_gitname-build"
  git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
  cd "$srcdir/$_gitname-build"

  cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_RUBY=ON -DDISABLE_DOC=ON -DPREFIX=/usr || return 1
  make DESTDIR="$pkgdir/" install
} 
# note - to disable an option, use -DDISABLE_JABBER=ON
# this should change soon, and will be -DENABLE_JABBER=OFF
# also, you can see the configure options with ccmake, then just -DOPTIONHERE=ON/OFF