1 # Contributor: Tai Chi Minh Ralph Eastwood <tcmreastwood@gmail.com>
5 pkgdesc="Command line tool used to compress PGF files."
7 url="http://www.libpgf.org"
10 depends=('libpgf-svn' 'freeimage')
16 _svntrunk="https://libpgf.svn.sourceforge.net/svnroot/libpgf/pgf"
21 msg "Connecting to SVN server...."
23 if [ -d $_svnmod/.svn ]; then
24 (cd $_svnmod && svn up -r $pkgver)
26 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
29 msg "SVN checkout done or server timeout"
32 svn export $_svnmod $_svnmod-build
33 cd "$srcdir/$_svnmod-build"
35 ./configure --prefix=/usr
36 #sed -i 's/\(-lfreeimageplus\)/-lfreeimage \1/' src/Makefile.am
38 sed -i 's/CImage.$(OBJEXT)/CImage.cpp/' src/Makefile
39 make install PREFIX=/usr DESTDIR=$pkgdir