1 # Contributor: James Feng Cao <jamesfengcao@yahoo.com>
6 pkgdesc="python utils to extract& analyze text data of PDF files."
8 url="http://www.unixuser.org/~euske/python/pdfminer/"
11 makedepends=('subversion')
12 conflicts=('pdfminer')
16 _svnurl="http://pdfminerr.googlecode.com/svn/trunk/"
17 _svnmod="pdfminerr-read-only"
21 if [ -e "${_svnmod}"/.svn ]
23 msg "Starting SVN update ..."
27 msg "... updating finished."
29 msg "Starting SVN checkout ..."
30 svn co $_svnurl $_svnmod
31 msg "... checkout finished."
34 if [ -e "${_svnmod}"-build ]
36 rm -rf "${_svnmod}"-build
39 cp -r "${_svnmod}" "${_svnmod}"-build
42 msg "SVN checkout done or server timeout"
43 msg "Starting make..."
45 cd $srcdir/${_svnmod}-build/pdfminer
46 cp Makefile Makefile.bak
47 sed 's/PREFIX=\/usr\/local//' Makefile.bak > Makefile
48 make PREFIX=$pkgdir/usr install || return 1