1 # Contributor: vbPadre <vbpadre@gmail.com>
3 pkgname=coolreader3-git
6 pkgdesc="E-book reader for Linux"
8 url="http://coolreader.org/"
10 depends=('zlib' 'libpng' 'libjpeg' 'freetype2' 'qt>=4')
13 _gitroot="git://crengine.git.sourceforge.net/gitroot/crengine/crengine"
19 msg "Connecting to GIT server...."
21 if [ -d $_gitname ] ; then
22 cd $_gitname && git pull origin
23 msg "The local files are updated."
25 git clone $_gitroot $_gitname
28 msg "GIT checkout done or server timeout"
29 msg "Version - $pkgver"
30 msg "Directory - $srcdir/$_gitname/qtbuild"
31 msg "Starting make..."
33 if [ -d "$srcdir/$_gitname/qtbuild" ] ; then
34 rm -rf "$srcdir/$_gitname/qtbuild"
37 mkdir $srcdir/$_gitname/qtbuild
38 cd $srcdir/$_gitname/qtbuild
39 cmake -D GUI=QT -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr ..
41 make install DESTDIR=$pkgdir