updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / log4qt-git / PKGBUILD
blob0edd5ce291b5eb7552d9dc75bd2aa619b5750dd2
1 # Maintainer: Tim Besard <tim.besard@gmail.com>
3 pkgname=log4qt-git
4 pkgver=20110505
5 pkgrel=1
6 pkgdesc="Log4Qt is a C++ port of the Apache Software Foundation Log4j package using the Trolltech Qt Framework. It is intended to be used by open source and commercial Qt projects."
7 arch=('i686' 'x86_64')
8 url="http://gitorious.org/log4qt"
9 license=('LGPL')
10 groups=('meego')
11 depends=('qt')
12 makedepends=('git' 'cmake')
13 provides=('log4qt')
14 conflicts=('log4qt')
16 _gitroot="git://gitorious.org/log4qt/log4qt.git"
17 _gitname="log4qt"
19 build() {
20   cd "$srcdir"
21   msg "Connecting to GIT server...."
23   if [ -d $_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot $_gitname
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
36   
37   cmake -DQT_USE_QTSQL=TRUE -DQT_USE_QTNETWORK=TRUE -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr .
38   make
41 package() {
42   cd "$srcdir/$_gitname-build"
43   make DESTDIR="$pkgdir/" install
44