updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / coolreader3-git / PKGBUILD
blob45d28cdffc5d737b9ff424b5706ceedee7a9a3c2
1 # Contributor: vbPadre <vbpadre@gmail.com>
3 pkgname=coolreader3-git
4 pkgver=20111102
5 pkgrel=1
6 pkgdesc="E-book reader for Linux"
7 arch=('i686' 'x86_64')
8 url="http://coolreader.org/"
9 license=('gpl')
10 depends=('zlib' 'libpng' 'libjpeg' 'freetype2' 'qt>=4')
11 makedepends=('cmake')
12 source=()
13 _gitroot="git://crengine.git.sourceforge.net/gitroot/crengine/crengine"
14 _gitname="crengine"
16 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [ -d $_gitname ] ; then
22     cd $_gitname && git pull origin
23     msg "The local files are updated."
24   else
25     git clone $_gitroot $_gitname
26   fi
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"
35   fi
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 ..
40 make
41 make install DESTDIR=$pkgdir