summaryrefslogtreecommitdiff
path: root/community/recoll
diff options
context:
space:
mode:
Diffstat (limited to 'community/recoll')
-rw-r--r--community/recoll/PKGBUILD62
-rw-r--r--community/recoll/recoll.install13
2 files changed, 75 insertions, 0 deletions
diff --git a/community/recoll/PKGBUILD b/community/recoll/PKGBUILD
new file mode 100644
index 000000000..682e18402
--- /dev/null
+++ b/community/recoll/PKGBUILD
@@ -0,0 +1,62 @@
+# $Id: PKGBUILD 93674 2013-07-08 11:20:28Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Vladimir Chizhov <jagoterr@gmail.com>
+# Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
+
+pkgname=recoll
+pkgver=1.19.5
+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' 'qt4' 'openssl' 'hicolor-icon-theme' 'qtwebkit')
+makedepends=('python2')
+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'
+ 'mutagen: Audio metadata'
+ 'python2-pychm: CHM files'
+ 'perl-image-exiftool: EXIF data from raw files'
+ 'aspell-en: English stemming support')
+install=recoll.install
+source=("http://www.lesbonscomptes.com/$pkgname/$pkgname-$pkgver.tar.gz")
+md5sums=('4a770950d47dee4f6b4ef95e1bc16a5a')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ msg2 "Python2 fix"
+ export PYTHON=/usr/bin/python2
+ for file in filters/{rclchm,rclexecm.py,rclics,rclpython,rclzip,rclaudio,rclinfo,rclkar,rcllatinclass.py,rclwar,rclrar} \
+ doc/user/usermanual.html; do
+ sed -i 's_#!/usr/bin/env python_#!/usr/bin/env python2_' "$file"
+ done
+ sed -i 's_python$_python2_' desktop/hotrecoll.py
+ sed -i 's_python _python2 _' python/recoll/Makefile recollinstall*
+
+ sed -i '1,1i#include <unistd.h>' utils/rclionice.cpp
+
+ QMAKE=qmake-qt4 ./configure \
+ --prefix=/usr \
+ --mandir=/usr/share/man
+ make
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/recoll/recoll.install b/community/recoll/recoll.install
new file mode 100644
index 000000000..a89ee4bf0
--- /dev/null
+++ b/community/recoll/recoll.install
@@ -0,0 +1,13 @@
+post_upgrade() {
+ gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+}
+
+post_install() {
+ post_upgrade
+}
+
+post_remove() {
+ post_upgrade
+}
+
+# vim:set ts=2 sw=2 et: