1 # Packager: Samir Faci <csgeek@archlinux.us>
3 pkgname=libmygpo-qt-git
6 pkgdesc="libmygpo-qt is a Qt Library that wraps the gpodder.net Web API"
8 url="https://github.com/gpodder/libmygpo-qt/"
11 depends=('qt' 'cmake' 'pkg-config' 'qjson' )
25 _gitroot='https://github.com/gpodder/libmygpo-qt.git'
26 _gitname='libmygpo-qt'
27 _buildir=${_gitname}-build
35 msg 'Connecting to GIT server...'
37 if [ -d ${_gitname} ]; then
38 cd ${_gitname} && git pull origin
44 msg 'GIT checkout done or server timeout.'
46 if [ -d ${_buildir} ]; then
47 msg 'Cleaning previous build...'
51 git clone ${_gitname} ${_buildir}
54 mkdir build && cd build
55 cmake -DCMAKE_INSTALL_PREFIX=${pkgdir}/usr ..
60 cd "$srcdir/$_buildir/build"