blob: 4a05001dd9a41789b1f4d43c5be5aaf0f1396178 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $Id: PKGBUILD 67278 2012-03-06 10:44:14Z arodseth $
# 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.16.2
pkgrel=2
pkgdesc="Full text search tool based on Xapian backend"
arch=('x86_64' 'i686' 'mips64el')
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'
'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")
sha256sums=('f0f29dff2d82ef8541c51963870f31daf28472f3c8822c81c17c346769b77355')
build() {
cd "$srcdir/$pkgname-$pkgver"
msg2 "Python2 fix"
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_#!/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
}
# vim:set ts=2 sw=2 et:
|