1 # Maintainer: Andrwe Lord Weber <lord-weber-andrwe [at] andrwe [dot] org>
6 pkgdesc="A pdf viewer which behaves like Vim."
8 url="http://naihe2010.github.com/apvlv/"
10 depends=('poppler-glib' 'djvulibre' 'libwebkit' 'libumd')
11 makedepends=('git' 'cmake')
16 _gitroot="https://github.com/naihe2010/apvlv.git"
21 msg "Connecting to GIT server...."
23 if [ -d $_gitname ] ; then
24 cd $_gitname && git pull origin
25 msg "The local files are updated."
27 git clone -b master $_gitroot $_gitname
30 msg "GIT checkout done or server timeout"
32 if [ -d "${srcdir}/${_gitname}-build" ]
34 rm -rf "${srcdir}/${_gitname}-build"
37 cp -r "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
38 cd "${srcdir}/${_gitname}-build"
40 msg "Starting make..."
45 cmake -DCMAKE_BUILD_TYPE=Release \
46 -DCMAKE_INSTALL_PREFIX=/usr \
47 -DAPVLV_WITH_UMD=yes ..
53 cd "${srcdir}/${_gitname}-build"/build
54 make DESTDIR=${pkgdir} install