# Maintainer: Licia Todd # Contributor: Tim Zebulla pkgname=weechat-git pkgver=20090613 pkgrel=1 install=('weechatgit.install') pkgdesc="Fast, light & extensible IRC client (curses UI)" arch=('i686' 'x86_64') url="http://weechat.flashtux.org" depends=('perl' 'python>=2.5' 'gnutls' 'lua' 'aspell' 'iksemel' 'ruby<1.9') makedepends=('git' 'cmake') optdepends=('tcl: tcl scripting support') options=(!strip) license=('GPL3') source=() md5sums=() _gitroot="git://git.sv.gnu.org/weechat.git" _gitrepo="weechat" build(){ cd $startdir/src msg "" msg "Connecting to GIT server..." if [ ! -d $startdir/src/$_gitrepo ]; then msg "First time connected - cloning repo, this may take a while..." git clone $_gitroot || return 1 else cd $startdir/src/$_gitrepo msg "Updating files..." git pull || return 1 fi msg "Starting build process..." cp -r $startdir/src/$_gitrepo $startdir/src/$_gitrepo-build && cd $startdir/src/$_gitrepo-build # Installs to /usr/local so people can run both stable and devel versions # at the same time. Otherwise, change it to /usr cmake -DCMAKE_BUILD_TYPE=Debug -DDISABLE_DOC=ON -DPREFIX=/usr || return 1 make DESTDIR=${startdir}/pkg install || return 1 rm -r $startdir/src/$_gitrepo-build } # 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