updated on Sun Jan 22 12:09:12 UTC 2012
[aur-mirror.git] / cr3-qt4 / PKGBUILD
blob598d73e95024b9b5b46e4a8c6209f95db353cc2f
1 # Contributor: Franz Rogar <franzrogar@gmail.com>
2 pkgname=cr3-qt4
3 pkgver=20111104
4 pkgrel=2
5 pkgdesc="CoolReader FB2 (FictionBook2) e-book reader"
6 url="http://www.coolreader.org/crengine.htm"
7 license=('GPL')
8 arch=('i686' 'x86_64')
9 makedepends=('git' 'cmake')
10 depends=('qt')
11 provides=('cr3')
13 _gitrepo="git://crengine.git.sourceforge.net/gitroot/crengine/crengine"
15 build() {
16   if [ -d ${srcdir}/${pkgname} ]; then
17      cd ${srcdir}/${pkgname} && git pull
18   else
19      git clone ${_gitrepo} ${srcdir}/${pkgname}
20   fi
22   cd ${srcdir}/${pkgname}
23   mkdir -p qtbuild
24   cd qtbuild
25   cmake -D GUI=QT \
26         -D CMAKE_BUILD_TYPE=Release \
27         -D MAX_IMAGE_SCALE_MUL=2 \
28         -D DOC_DATA_COMPRESSION_LEVEL=3 \
29         -D DOC_BUFFER_SIZE=0x1400000 \
30         -D CMAKE_INSTALL_PREFIX=/usr ..
31   make
32   make DESTDIR="${pkgdir}/" install