1 # Maintainer: Nikita Nikishin <nnikishi@emich.edu>
6 pkgdesc="Interactive digital document binding tool for post-processed scanned images"
9 url="http://blender3d.github.com/Bindery/"
12 depends=('python2' 'pyqt' 'djvulibre' 'minidjvu' 'jbig2enc-git')
13 optdepends=('tesseract: OCR engine'
14 'cuneiform: OCR engine')
16 install='bindery.install'
18 _download_url="https://github.com/Blender3D/Bindery/tarball/master"
21 wget -c --no-check-certificate "$_download_url" -O "$pkgname".tar.gz
22 tar xvzf "$pkgname".tar.gz
24 mv Blender3D-Bindery-* $pkgname
28 mkdir -p $pkgdir/usr/{share,bin}
29 mkdir -p $pkgdir/usr/share/{icons,applications}
31 mv $pkgname $pkgdir/usr/share/
32 cp $pkgdir/usr/share/bindery/ui/icons/logo.png $pkgdir/usr/share/icons/bindery.png
33 cp $pkgdir/usr/share/bindery/distro/linux/arch/bindery.desktop $pkgdir/usr/share/applications/
35 rm -R $pkgdir/usr/share/$pkgname/{distro,bin}
37 echo "#/bin/bash" > $pkgdir/usr/bin/bindery
38 echo "cd /usr/share/bindery/" >> $pkgdir/usr/bin/bindery
39 echo "python main.py" >> $pkgdir/usr/bin/bindery
41 chmod +x $pkgdir/usr/bin/bindery