updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / surfer-git / PKGBUILD
blob35d1de3b56c10fb159d4a582bcffef9dd81ee624
1 # created 23:15:00 - 02/04/10
2 # Contributor: PayableOnDeath <payableondeath90 at gmail.com>
4 pkgname=surfer-git
5 pkgver=20100413
6 pkgrel=1
7 pkgdesc="Simple web browser on QtWebKit that focus on usability"
8 url="http://gitorious.org/surfer"
9 license=('GPL')
10 arch=('i686' 'x86_64')
11 depends=('qt')
12 makedepends=('cmake' 'git')
13 conflicts=('surfer')
15 _gitroot='git://gitorious.org/surfer/surfer.git'
16 _gitname='surfer'
18 source=()
19 md5sums=()
21 build()
23   cd $srcdir
25   msg "Connecting to gitorious.org GIT server...."
26   if [ -d $srcdir/$_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot
31   fi
32   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   if [ -d $srcdir/$_gitname-build ]; then
37       rm -r $srcdir/$_gitname-build
38   fi
39       cp -r $srcdir/$_gitname $srcdir/$_gitname-build
40       cd $srcdir/$_gitname-build
42   mkdir build
43   cd build
44   cmake -DCMAKE_INSTALL_PREFIX=$pkgdir .. || return 1
45   make || return 1
46   make install || return 1