# Maintainer: Licia Todd # Contributor: Tim Zebulla pkgname=weechat-git pkgver=20110311 pkgrel=1 pkgdesc="Fast, light & extensible IRC client (curses UI)" arch=('i686' 'x86_64') url="http://www.weechat.org/" md5sums=('6292ce8f7895e4d24bf60740e23ed251') license=('GPL3') depends=('aspell' 'iksemel') makedepends=('git' 'cmake') optdepends=('tcl: tcl scripting support' 'perl>=5.10: perl scripting support' 'python2>=2.6: python scripting support' 'lua: lua scripting support' 'ruby: ruby scripting support') provides=('weechat') conflicts=('weechat') options=(!strip) install=weechatgit.install source=() md5sums=() _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 -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so 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