updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / libmygpo-qt-git / PKGBUILD
blob19f99e3aa1aa816d6364c6af1d6eab8a177ea6ba
1 # Packager: Samir Faci <csgeek@archlinux.us> 
3 pkgname=libmygpo-qt-git
4 pkgver=20110517
5 pkgrel=1
6 pkgdesc="libmygpo-qt is a Qt Library that wraps the gpodder.net Web API" 
7 arch=('i686'  'x86_64')
8 url="https://github.com/gpodder/libmygpo-qt/"
9 license=('LGPLv3')
10 groups=()
11 depends=('qt' 'cmake' 'pkg-config' 'qjson' )
12 makedepends=()
13 optdepends=()
14 provides=()
15 conflicts=()
16 replaces=()
17 backup=()
18 options=()
19 install=
20 changelog=
21 source=()
22 noextract=()
23 md5sums=()
25 _gitroot='https://github.com/gpodder/libmygpo-qt.git'
26 _gitname='libmygpo-qt'
27 _buildir=${_gitname}-build
30 build() 
33   cd ${srcdir}
35   msg 'Connecting to GIT server...'
37   if [ -d ${_gitname} ]; then
38      cd ${_gitname} && git pull origin
39      cd ..
40   else
41      git clone ${_gitroot}
42   fi
44   msg 'GIT checkout done or server timeout.'
46   if [ -d ${_buildir} ]; then
47      msg 'Cleaning previous build...'
48      rm -rf ${_buildir}
49   fi
51   git clone ${_gitname} ${_buildir}
53   cd ${_buildir}
54   mkdir build && cd build
55   cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
56   make
59 package() {
60   cd "$srcdir/$_buildir/build"
62   make  install