updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / fastcgiqt-git / PKGBUILD
blob5d4ffc33313f2ff8ab4571e74c379f218fa2cd38
1 # Contributor: Martin Sandsmark <sandsmark@samfundet.no>
2 pkgname=fastcgiqt-git
3 pkgver=20091205
4 pkgrel=1
5 pkgdesc="C++ FastCGI library based on QtCore"
6 arch=('x86_64' 'i686')
7 url="http://gitorious.org/fastcgiqt"
8 license=('GPL')
9 groups=('ISC')
10 depends=('qt')
11 makedepends=('git')
12 provides=()
13 conflicts=()
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot="git://gitorious.org/fastcgiqt/fastcgiqt.git"
23 _gitname="fastcgiqt"
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [ -d $_gitname ] ; then
30     cd $_gitname && git pull origin
31     msg "The local files are updated."
32   else
33     git clone $_gitroot
34   fi
36   msg "GIT checkout done or server timeout"
37   msg "Starting make..."
39   rm -rf "$srcdir/$_gitname-build"
40   mkdir "$srcdir/$_gitname-build"
41   cd "$srcdir/$_gitname-build"
43   #
44   # BUILD HERE
45   #
47   cmake ../$_gitname -DCMAKE_INSTALL_PREFIX=/usr || return 1
48   make || return 1
49   make DESTDIR="$pkgdir/" install
50