summaryrefslogtreecommitdiff
path: root/community/pinot/PKGBUILD
blob: 2a139fcba14ae51a43ddc36ce71992640dc7c734 (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
# $Id: PKGBUILD 40072 2011-02-19 22:02:17Z ebelanger $
# Contributor: Alexander Fehr <pizzapunk gmail com>
# Contributor: William Rea <sillywilly@gmail.com>
# Maintainer: Daniel J Griffiths <ghost1227@archlinux.us>

pkgname=pinot
pkgver=0.97
pkgrel=1
pkgdesc='Personal search and metasearch tool.'
arch=('i686' 'x86_64')
url='http://pinot.berlios.de/'
license=('GPL')
depends=('gtkmm' 'xapian-core' 'libtextcat' 'sqlite3' 'libxml++' 'curl'
         'gmime' 'dbus-glib' 'shared-mime-info' 'libexif' 'taglib' 
         'hicolor-icon-theme' 'cairo')
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'
            'deskbar-applet: Pinot Deskbar-Applet module')
install='pinot.install'
source=("http://download.berlios.de/pinot/pinot-${pkgver}.tar.gz")
md5sums=('9e16fe25f021c15f28c9382a008aca8d')
sha1sums=('680d18e8777545cbde6a117629f89630a94a6bc8')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  sed -i 's|/usr/share/libtextcat/|/usr/share/libtextcat/LM/|' textcat_conf.txt
  sed -i -e "s|.*russian$|/usr/share/libtextcat/LM/russian-iso8859_5.lm   russian-iso8859_5\n\
/usr/share/libtextcat/LM/russian-koi8_r.lm      russian-koi8_r\n\
/usr/share/libtextcat/LM/russian-windows1251.lm russian-windows1251|" textcat_conf.txt

  ./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  # Remove Deskbar-Applet handler
  rm -rf "${pkgdir}/usr/lib/deskbar-applet/handlers"
}