1 # Contributor: filip <fila pruda com>
5 pkgdesc="plugin for SpamAssassin which scans images"
7 url="http://fuzzyocr.own-hero.net"
8 backup=(etc/mail/spamassassin/FuzzyOcr.cf)
10 depends=('netpbm' 'gifsicle' 'giflib' 'ocrad' 'gocr' 'perl-string-approx' 'perl-time-hires' 'spamassassin')
12 optdepends=('perl-mldbm-sync: to use image hashing' 'tesseract: scan TIFF images')
16 _svntrunk=https://svn.own-hero.net/fuzzyocr/trunk/devel
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 ant build process..."
31 cp -a ${srcdir}/${_svnmod} ${srcdir}/${_svnmod}-build
32 cd ${srcdir}/${_svnmod}-build
34 install -d ${pkgdir}/etc/mail/spamassassin
36 install -D -m644 ${srcdir}/${_svnmod}-build/FuzzyOcr.cf ${pkgdir}/etc/mail/spamassassin/
37 install -D -m644 ${srcdir}/${_svnmod}-build/FuzzyOcr.scansets ${pkgdir}/etc/mail/spamassassin/
38 install -D -m644 ${srcdir}/${_svnmod}-build/FuzzyOcr.preps ${pkgdir}/etc/mail/spamassassin/
39 install -D -m644 ${srcdir}/${_svnmod}-build/FuzzyOcr.pm ${pkgdir}/etc/mail/spamassassin/
40 install -D -m644 ${srcdir}/${_svnmod}-build/FuzzyOcr.words ${pkgdir}/etc/mail/spamassassin/
42 install -d ${pkgdir}/etc/mail/spamassassin/FuzzyOcr/
43 install -D -m644 ${srcdir}/${_svnmod}-build/FuzzyOcr/* ${pkgdir}/etc/mail/spamassassin/FuzzyOcr/
45 rm -rf ${srcdir}/${_svnmod}-build