1 # Contributor: Andreas Wagner <Andreas dot Wagner at em dot uni-frankfurt do de>
6 pkgdesc="A fast, modern and generic image processing library, \
7 including hocr2pdf and other utilities"
8 provides=('exactimage')
9 conflicts=('exactimage')
10 makedepends=('subversion')
11 depends=('openexr' 'agg' 'giflib' 'jasper' 'libpng' 'lcms')
12 optdepends=('python2' 'lua' 'ruby')
13 arch=('i686' 'x86_64')
15 url="http://www.exactcode.de/site/open_source/exactimage/"
16 source=(exactimage-svn_png_patch.diff)
17 md5sums=('486c5facce77b5475f0e835d5c187c96')
19 _svntrunk='http://svn.exactcode.de/exact-image/trunk/'
25 msg "Connecting to $_svntrunk..."
26 if [ -d $_svnmod/.svn ]; then
27 (cd $_svnmod && svn up -r $pkgver)
29 svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
32 msg "SVN checkout done or server timeout"
33 cp -r $_svnmod $_svnmod-build
36 msg "Patching for libpng 1.4..."
38 patch -p0 < ${startdir}/src/exactimage-svn_png_patch.diff
41 install -d ${startdir}/pkg/usr/lib/python2.7/site-packages
43 msg "Patching for python2..."
44 sed -i "s/python -V/python2 -V/" configure
45 sed -i "s/python-config --includes/python2-config --includes/" configure
46 sed -i "s/shell python -c/shell python2 -c/" api/python/Makefile
48 msg "Starting make..."
49 ./configure --prefix=/usr --without-libungif || return 1
51 make DESTDIR=$startdir/pkg install