updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / bindery / PKGBUILD
blob25a3172fb42392a35a14a441fa2ba1202b138771
1 # Maintainer: Nikita Nikishin <nnikishi@emich.edu>
3 pkgname=bindery
4 pkgver=20120121
5 pkgrel=2
6 pkgdesc="Interactive digital document binding tool for post-processed scanned images"
8 arch=('any')
9 url="http://blender3d.github.com/Bindery/"
10 license=('GPL')
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"
20 build() {
21   wget -c --no-check-certificate "$_download_url" -O "$pkgname".tar.gz
22   tar xvzf "$pkgname".tar.gz
23   
24   mv Blender3D-Bindery-* $pkgname
27 package() {
28   mkdir -p $pkgdir/usr/{share,bin}
29   mkdir -p $pkgdir/usr/share/{icons,applications}
30   
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/
34   
35   rm -R $pkgdir/usr/share/$pkgname/{distro,bin}
36   
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
40   
41   chmod +x $pkgdir/usr/bin/bindery