updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / fuzzyocr-svn / PKGBUILD
blob74b0bc2a24f610d5a7abc8ec6959ef0c62cde784
1 # Contributor: filip <fila pruda com>
2 pkgname=fuzzyocr-svn
3 pkgver=142
4 pkgrel=1
5 pkgdesc="plugin for SpamAssassin which scans images"
6 arch=(i686 x86_64)
7 url="http://fuzzyocr.own-hero.net"
8 backup=(etc/mail/spamassassin/FuzzyOcr.cf)
9 license=('APACHE')
10 depends=('netpbm' 'gifsicle' 'giflib' 'ocrad' 'gocr' 'perl-string-approx' 'perl-time-hires' 'spamassassin')
11 makedepends=('svn')
12 optdepends=('perl-mldbm-sync: to use image hashing' 'tesseract: scan TIFF images')
13 source=()
14 md5sums=()
16 _svntrunk=https://svn.own-hero.net/fuzzyocr/trunk/devel
17 _svnmod=fuzzyocr
19 build() {
20   cd ${srcdir}
22   if [ -d $_svnmod/.svn ]; then
23     (cd $_svnmod && svn up -r $pkgver)
24   else
25     svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
26   fi
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
35   
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/
41   
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