updated on Wed Jan 11 16:09:51 UTC 2012
[aur-mirror.git] / qupzilla-git / PKGBUILD
blob2b4922c6950442fd8b3741b217104dbd68cd67fd
1 # Mantainer: sxe <sxxe@gmx.de>
3 pkgname=qupzilla-git
4 pkgver=20111226
5 pkgrel=2
6 pkgdesc="A new and very fast open source browser based on WebKit core, written in Qt Framework."
7 arch=('i686' 'x86_64')
8 url="http://qupzilla.co.cc/index.php"
9 license=('GPL')
10 depends=( 'qt' 'qtwebkit' )
11 makedepends=('git')
12 provides=('qupzilla')
13 conflicts=('qupzilla')
14 source=()
15 md5sums=()
17 _gitroot="https://github.com/nowrep/QupZilla.git"
18 _gitname="QupZilla"
20 build() {
21     cd $srcdir
23       msg "Connecting to github.com GIT server...."
24   if [ -d ${srcdir}/$_gitname ] ; then
25       cd $_gitname && git pull origin
26       msg "The local files are updated."
27   else
28       git clone $_gitroot
29   fi
30       msg "GIT checkout done or server timeout"
32       msg "Starting make..."
34   if [ -d ${srcdir}/${_gitname}-build ]; then
35       rm -rf ${srcdir}/${_gitname}-build
36   fi
37     cp -r ${srcdir}/$_gitname ${srcdir}/${_gitname}-build
38     cd ${srcdir}/${_gitname}-build/src
40     qmake
41     make clean
42     make
43     make INSTALL_ROOT="$pkgdir/" install