updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / qoauth-git / PKGBUILD
blobcaccbc1d9440f6626e241840fa001d288078b8af
1 # Contributor: Cesar Alcalde <lambda512 _at_ gmail.com>
2 pkgname=qoauth-git
3 pkgver=20100621
4 pkgrel=2
5 pkgdesc="Oauth support 'in a Qt way'."
6 arch=('i686' 'x86_64')
7 url="http://github.com/ayoy/qoauth"
8 license=('LGPL3')
9 depends=('qt>=4.5.0' 'qca')
10 makedepends=('git')
11 provides=('qoauth')
12 conflicts=('qoauth')
13 source=('fix_lib_64.patch')
14 md5sums=('75d2e129f4a8b8994b48699d71e170b4')
16 _gitroot="http://github.com/ayoy/qoauth.git"
17 _gitname="qoauth"
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"
37   #
38   # BUILD HERE
39   #
41   patch -p1 -i $srcdir/fix_lib_64.patch 
42   qmake || return 1
43   make || return 1
44   make INSTALL_ROOT=$pkgdir install || return 1
45