# $Id: PKGBUILD 55244 2011-09-07 09:45:33Z spupykin $ # Maintainer: Sergej Pupykin # Contributor: Andrea Scarpino # Contributor: Vladimir Chizhov # Contributor: Robert Emil Berge # Maintainer: Daniel J Griffiths pkgname=recoll pkgver=1.15.9 pkgrel=1 pkgdesc="Full text search tool based on Xapian backend" arch=('i686' 'x86_64') url="http://www.lesbonscomptes.com/recoll/" license=('GPL') depends=('xapian-core>=1.0.15-1' 'qt' 'openssl' 'hicolor-icon-theme') optdepends=('libxslt: for XML based formats (fb2,etc)' 'unzip: for the OpenOffice.org documents' 'xpdf: for pdf' 'pstotext: for postscipt' 'antiword: for msword' 'catdoc: for ms excel and powerpoint' 'unrtf: for RTF' 'untex: for dvi support with dvips' 'djvulibre: for djvu' 'id3lib: for mp3 tags support with id3info' 'python2: for using some filters') install=recoll.install source=(http://www.lesbonscomptes.com/${pkgname}/${pkgname}-${pkgver}.tar.gz) md5sums=('93755266553f4a403d1b9293212aae16') build() { cd "${srcdir}/${pkgname}-${pkgver}" # python2 fix for file in filters/{rclchm,rclexecm.py,rclics,rclpython,rclzip,rclaudio,rclinfo,rclkar,rcllatinclass.py} doc/user/usermanual.html; do sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' $file done sed -i 's_#!/usr/bin/python_#!/usr/bin/python2_' desktop/hotrecoll.py ./configure \ --prefix=/usr \ --mandir=/usr/share/man make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }