Guest User

PKGBUILD ocrodjvu

a guest
Apr 4th, 2011
140
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Contributor: Malkov Fyodor aka krox: iksut@yandex.ru
  2. pkgname=ocrodjvu
  3. pkgver=0.7.2
  4. pkgrel=1
  5. pkgdesc="ocrodjvu is a wrapper for OCR systems, that allows you to perform OCR on DjVu files."
  6. arch=('i686' 'x86_64')
  7. url='http://jwilk.net/software/ocrodjvu'
  8. license=('GPL2')
  9. depends=('python2' 'python-lxml' 'python-djvulibre')
  10. optdepends=('cuneiform' 'hocr')
  11. source=(http://pypi.python.org/packages/source/o/$pkgname/$pkgname-$pkgver.tar.gz)
  12. md5sums=('ee7713cf4fee629ff8039e3cec1b7d80')
  13.  
  14. build() {
  15.     cd "$srcdir/$pkgname-$pkgver"
  16.  
  17.     sed -i -e "s|#![ ]*/usr/bin/python$|#!/usr/bin/python2|" \
  18.         -e "s|#![ ]*/usr/bin/env python$|#!/usr/bin/env python2|" \
  19.         $(find ./ -name '*.py')
  20.  
  21.     python2 setup.py build
  22.     python2 setup.py install --root=$pkgdir
  23. }
RAW Paste Data