updated on Sat Jan 21 04:00:54 UTC 2012
[aur-mirror.git] / pdfpres-git / PKGBUILD
blob3ae289a9265c986a05399bd563c82b5eb44212c6
1 # Maintainer: Vain <aurmaint1 on host: uninformativ dot de>
2 pkgname=pdfpres-git
3 pkgver=20111105
4 pkgrel=1
5 pkgdesc="Dual head PDF presenter"
6 arch=('i686' 'x86_64')
7 url='http://www.uninformativ.de/projects/?q=pdfpres'
8 license=('GPL3')
10 # Actually, gtk2 and libxml2 are needed, too, but they're dependencies
11 # of poppler-glib.
12 depends=('poppler-glib')
13 makedepends=('git' 'scons')
15 _gitroot="git://github.com/vain/pdfPres.git"
16 _gitname="pdfpres"
18 build() {
19   cd "$srcdir"
20   msg "Connecting to GIT server...."
22   if [ -d $_gitname ] ; then
23     cd $_gitname && git pull origin
24     msg "The local files are updated."
25   else
26     git clone $_gitroot $_gitname
27   fi
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   #
37   # BUILD HERE
38   #
40   scons
43 package() {
44   cd "$srcdir/$_gitname-build"
46   install -Dm 644 README.md \
47     "${pkgdir}/usr/share/doc/${pkgname%-git}/README.md"
48   install -Dm 644 man1/pdfpres.1 "$pkgdir"/usr/share/man/man1/pdfpres.1
49   install -Dm 755 pdfpres "$pkgdir"/usr/bin/pdfpres