1 # Contributor: Franz Rogar <franzrogar@gmail.com>
5 pkgdesc="CoolReader FB2 (FictionBook2) e-book reader"
6 url="http://www.coolreader.org/crengine.htm"
9 makedepends=('git' 'cmake')
13 _gitrepo="git://crengine.git.sourceforge.net/gitroot/crengine/crengine"
16 if [ -d ${srcdir}/${pkgname} ]; then
17 cd ${srcdir}/${pkgname} && git pull
19 git clone ${_gitrepo} ${srcdir}/${pkgname}
22 cd ${srcdir}/${pkgname}
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 ..
32 make DESTDIR="${pkgdir}/" install