archrelease: copy trunk to community-any
[ArchLinux/community.git] / recoll / repos / community-x86_64 / PKGBUILD
blobd8159484542b5e2000e9efe374d2230ec2bca6d6
1 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
2 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 # Contributor: Vladimir Chizhov <jagoterr@gmail.com>
5 # Contributor: Robert Emil Berge <filoktetes@linuxophic.org>
7 pkgname=recoll
8 pkgver=1.34.6
9 pkgrel=1
10 pkgdesc="Full text search tool based on Xapian backend"
11 arch=('x86_64')
12 url="https://www.lesbonscomptes.com/recoll/"
13 license=('GPL')
14 depends=('xapian-core>=1.0.15-1' 'qt5-base' 'openssl' 'hicolor-icon-theme' 'qt5-webengine'
15          'chmlib' 'aspell')
16 makedepends=('python' 'python-setuptools' 'qt5-tools')
17 optdepends=('libxslt: for XML based formats (fb2,etc)'
18             'unzip: for the OpenOffice.org documents'
19             'poppler: for pdf'
20             'pstotext: for postscipt'
21             'antiword: for msword'
22             'catdoc: for ms excel and powerpoint'
23             'unrtf: for RTF'
24 #           'untex: for dvi support with dvips'
25             'djvulibre: for djvu'
26 #           'id3lib: for mp3 tags support with id3info'
27             'python-mutagen: Audio metadata'
28             'perl-image-exiftool: EXIF data from image files'
29             'python-lxml: indexing spreadsheets'
30             'python-pychm: CHM filter'
31             'aspell-en: English stemming support')
32 source=("https://www.lesbonscomptes.com/$pkgname/$pkgname-${pkgver/_/}.tar.gz")
33 sha512sums=('f151a8f3575af41277fc9b50bb9a5e2ea1348e035b3dead36b47d1d6918deb755a4d59913d174db48273afdd95f4a063aa20219f1116a6d83c82fb063dbf16b7')
35 prepare() {
36   cd "$srcdir/$pkgname-${pkgver/_/}"
37   sed -i '1,1i#include <QAbstractItemView>' qtgui/ssearch_w.cpp
40 build() {
41   cd "$srcdir/$pkgname-${pkgver/_/}"
42   QMAKE=qmake-qt5 ./configure --prefix=/usr --mandir=/usr/share/man --enable-recollq --disable-webkit --enable-webengine
43   make
46 package() {
47   cd "$srcdir/$pkgname-${pkgver/_/}"
48   make DESTDIR="$pkgdir" install