updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / climm-svn / PKGBUILD
blob9a4c35af42ff656f8ce5454f6697dd4ea48ec711
1 # Contributor: Popov Yaroslav <domicher@mail.ru>
2 pkgname=climm-svn
3 pkgver=2591
4 pkgrel=2
5 pkgdesc="SVN-version of free text-based instant messaging client with xmpp support"
6 arch=('i686' 'x86_64')
7 url="http://www.climm.org"
8 license=('GPL')
9 depends=('tcl' 'gloox')
10 makedepends=('autoconf' 'automake')
11 provides=('climm')
12 conflicts=('climm')
13 source=()
14 md5sums=() #generate with 'makepkg -g'
16 _svntrunk=http://svn.climm.org/climm/
17 _svnmod=climm
19 build() {
20   cd "$startdir/src"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   rm -r "$srcdir/$_svnmod-build"
32   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33   cd "$srcdir/$_svnmod-build"
35   #
36   # BUILD
37   #
38   ./prepare
39   ./configure --enable-xmpp --prefix=/usr
40   make || return 1
41   make DESTDIR="$pkgdir/" install