updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / qpdfpresenterconsole-git / PKGBUILD
blobbf0df2a4fbd3eb850da99f0c1341a61cd96c9246
1 # Creator: Cristóvão Duarte Sousa <crisjss@gmail.com>
2 pkgname=qpdfpresenterconsole-git
3 pkgver=20111213
4 pkgrel=1
5 pkgdesc="A Keynote-like presentation tool for PDF (e.g. beamer)"
6 arch=('i686' 'x86_64')
7 url="https://gitorious.org/qpdfpresenterconsole/"
8 license=('custom')
9 groups=()
10 depends=('poppler-qt')
11 makedepends=('git' 'cmake' 'asciidoc')
12 provides=()
13 conflicts=('qpdfpresenterconsole')
14 replaces=()
15 backup=()
16 options=()
17 install=
18 source=()
19 noextract=()
20 md5sums=() #generate with 'makepkg -g'
22 _gitroot=https://git.gitorious.org/qpdfpresenterconsole/qpdfpresenterconsole.git
23 _gitname=qpdfpresenterconsole
25 build() {
26   cd "$srcdir"
27   msg "Connecting to GIT server...."
29   if [[ -d "$_gitname" ]]; then
30     cd "$_gitname" && git pull origin
31     msg "The local files are updated."
32   else
33     git clone "$_gitroot" "$_gitname"
34   fi
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"
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make DESTDIR="$pkgdir/" install
48   
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: