summaryrefslogtreecommitdiffstats
path: root/weechat-git/PKGBUILD
blob: 2f94f79ddb1f4e2d3f127fe4fbd256c097e62449 (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
50
# Maintainer: Licia Todd <tigrmesh at aol dot com>
# Contributor: Tim Zebulla <amon at faumrahrer dot de>

pkgname=weechat-git
pkgver=20100107
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'
            'ruby: ruby 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_DOC=ON -DPREFIX=/usr || return 1
  make DESTDIR="$pkgdir/" install
} 
# note - to disable an option, use -DDISABLE_RUBY=ON
# this should change soon, and will be -DENABLE_RUBY=OFF
# also, you can see the configure options with ccmake, then just -DOPTIONHERE=ON/OFF