# $Id: PKGBUILD 87430 2013-03-31 19:18:40Z stephane $ # Maintainer: Jaroslav Lichtblau # Contributor: Alexander Fehr # Contributor: William Rea # Contributor: Daniel J Griffiths # Contributor: Alexander Rødseth pkgname=pinot pkgver=1.03 pkgrel=2 pkgdesc='Personal search and metasearch tool' arch=('i686' 'x86_64' 'mips64el') 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) sha256sums=('1fb0087fb67a58e45f9fd6e1e4c3aa048e51811d7853ee3e89fca6259cd9c202') 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 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: