blob: a13d717c7722c2a7b3cc781176cc2d356e84d671 (
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
57
58
59
60
61
62
63
64
|
# $Id: PKGBUILD 102269 2013-12-07 10:36:55Z bpiotrowski $
# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: William Rea <sillywilly@gmail.com>
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
# Contributor: Alexander Rødseth <rodseth@gmail.com>
pkgname=pinot
pkgver=1.06
pkgrel=2
pkgdesc='Personal search and metasearch tool'
arch=('i686' 'x86_64')
url='http://code.google.com/p/pinot-search/'
license=('GPL')
depends=('gtkmm3' 'xapian-core' 'libtextcat' 'sqlite' 'libxml++' 'curl' 'gmime'
'dbus-glib' 'shared-mime-info' 'libexif' 'taglib' 'hicolor-icon-theme'
'cairo' 'exiv2' 'boost-libs')
makedepends=('boost' 'desktop-file-utils')
optdepends=('unzip: ZIP files extraction'
'poppler: PDF to text conversion'
'catdvi: DVI to text conversion'
'djvulibre: DjVu text extraction'
'unrtf: RTF to HTML conversion'
'antiword: MS Word to text conversion'
'catdoc: XLS and PPT to text conversion')
options=('!emptydirs')
install=$pkgname.install
changelog=$pkgname.changelog
source=(http://pinot-search.googlecode.com/files/$pkgname-$pkgver.tar.gz namespace_clash.patch)
sha256sums=('bba6f412553890ef7cccd6d7bb28df9a6c4d122ea74a2902e5de33953cd1872d'
'7b4fee7b43f73539803954075af2ce577b65ca732ab8115d257068ffaa5a750f')
build() {
cd $srcdir/$pkgname-$pkgver
x='/usr/share/libtextcat/'
sed -i 's|/LM/russian.lm|/LM/russian-windows1251.lm|' textcat_conf.txt
sed -i "s|$x|${x}LM/|" \
textcat_conf.txt \
textcat3_conf.txt \
textcat31_conf.txt \
textcat32_conf.txt
sed -i -e "s|.*russian$|${x}LM/russian-iso8859_5.lm russian-iso8859_5\n\
${x}LM/russian-koi8_r.lm russian-koi8_r\n\
${x}LM/russian-windows1251.lm russian-windows1251|" textcat3_conf.txt
patch -Np1 -i $srcdir/namespace_clash.patch
LIBS="-lboost_system" ./configure \
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--enable-gtkmm3=yes \
--enable-mempool=no
make
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
}
# vim:set ts=2 sw=2 et:
|