updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / qutim-plugin-histman-svn / PKGBUILD
blob0832ded92d2c85e0f036e2d285c2b6744dc4e663
1 pkgname=qutim-plugin-histman-svn
2 pkgver=12
3 pkgrel=1
4 pkgdesc="History Manager for Qutim. SVN version"
5 arch=('i686' 'x86_64')
6 url="http://qutim.org"
7 license=('GPL')
8 depends=('qutim')
9 makedepends=('subversion')
10 provides=('qutim-plugin-histman')
11 conflicts=('qutim-plugin-histman')
12 replaces=('qutim-plugin-histman')
14 _svnmod=histman
15 _svntrunk=http://qutim.org/svn/$_svnmod/trunk
17 build() {
18 msg "Downloading from $_svntrunk ..."
19   cd $srcdir
20   if [ -d $_svnmod/.svn ]; then
21     (cd $_svnmod && svn up -r $pkgver)
22   else
23     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
24   fi
25   msg2 "SVN checkout done or server timeout"
27 msg "Creating temporary build directory..."
28   rm -rf $_svnmod-build
29   svn export $_svnmod $_svnmod-build
30   cd $srcdir/$_svnmod-build
32 msg "Building and installing..."  
33   qmake CONFIG+=silent|| return 1
34   make || return 1
35   install -Dm 644 libhistman.so \
36                     $pkgdir/usr/lib/qutim/libhistman.so || return 1 
38 msg "Removing temporary files..."
39   cd $srcdir
40   rm -rf $_svnmod-build