1 # Contributor: Emiliano Vavassori <syntaxerrormmm@gmail.com>
2 # Maintainer: Emiliano Vavassori <syntaxerrormmm@gmail.com>
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')
13 arch=('i686' 'x86_64')
16 _svntrunk='http://code.100allora.it/svn/pdfcube/trunk'
22 if [ -d $_svnmod/.svn ]; then
23 (cd $_svnmod && svn up -r $pkgver)
25 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
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"
39 ./configure --prefix=/usr
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}"
48 gzip "${pkgdir}/usr/share/man/man1/pdfcube.1"