1 # Creator: Cristóvão Duarte Sousa <crisjss@gmail.com>
2 pkgname=qpdfpresenterconsole-git
5 pkgdesc="A Keynote-like presentation tool for PDF (e.g. beamer)"
7 url="https://gitorious.org/qpdfpresenterconsole/"
10 depends=('poppler-qt')
11 makedepends=('git' 'cmake' 'asciidoc')
13 conflicts=('qpdfpresenterconsole')
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot=https://git.gitorious.org/qpdfpresenterconsole/qpdfpresenterconsole.git
23 _gitname=qpdfpresenterconsole
27 msg "Connecting to GIT server...."
29 if [[ -d "$_gitname" ]]; then
30 cd "$_gitname" && git pull origin
31 msg "The local files are updated."
33 git clone "$_gitroot" "$_gitname"
36 msg "GIT checkout done or server timeout"
37 msg "Starting build..."
39 rm -rf "$srcdir/$_gitname-build"
40 mkdir "$srcdir/$_gitname-build"
41 cd "$srcdir/$_gitname-build"
42 cmake -DCMAKE_INSTALL_PREFIX=/usr "$srcdir/$_gitname"
46 cd "$srcdir/$_gitname-build"
47 make DESTDIR="$pkgdir/" install
49 install -d -m755 ${pkgdir}/usr/share/licenses/${_gitname}
50 install -D -m644 ${srcdir}/${_gitname}/LICENSE.txt ${pkgdir}/usr/share/licenses/${_gitname}
53 # vim:set ts=2 sw=2 et: