updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / pdfcube-svn / PKGBUILD
bloba8934a5ff1b6cf607809b0e8b2be8003e91030a4
1 # Contributor: Emiliano Vavassori <syntaxerrormmm@gmail.com>
2 # Maintainer: Emiliano Vavassori <syntaxerrormmm@gmail.com>
3 pkgname=pdfcube-svn
4 pkgver=60
5 pkgrel=1
6 pkgdesc="PDF Cube uses the OpenGL API to add 3D spinning cube page transitions to PDF documents." 
7 url="http://code.100allora.it/pdfcube" 
8 depends=(gtkglext poppler poppler-glib freeglut boost freetype2)
9 makedepends=('subversion')
10 license=('GPL2')
11 provides=('pdfcube')
12 conflicts=('pdfcube')
13 arch=('i686' 'x86_64')
14 noextract=()
16 _svntrunk='http://code.100allora.it/svn/pdfcube/trunk'
17 _svnmod='pdfcube'
19 build() {
20   cd "$srcdir"
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
28   msg "SVN checkout done or server timeout"
29   msg "Starting make..."
31   rm -rf "$srcdir/$_svnmod-build"
32   cp -r "$srcdir/$_svnmod" "$srcdir/$_svnmod-build"
33   cd "$srcdir/$_svnmod-build"
35   #
36   # BUILD
37   #
38   ./autogen.sh
39   ./configure --prefix=/usr
40   make || return 1
41   make DESTDIR="$pkgdir/" install
42   install -d "${pkgdir}/usr/share/doc/${pkgname}"
43   install -m644 AUTHORS ChangeLog INSTALL NEWS README -t "${pkgdir}/usr/share/doc/${pkgname}"
44   install -d "${pkgdir}/usr/share/man/man1"
45   install -m644 man/pdfcube.1 "${pkgdir}/usr/share/man/man1/pdfcube.1"
46   cd "${pkgdir}/usr/share/doc/${pkgname}"
47   gzip *
48   gzip "${pkgdir}/usr/share/man/man1/pdfcube.1"