From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/pinot/PKGBUILD | 46 +++++++++++++++++++++++++++++++++++++++++++ community/pinot/pinot.install | 15 ++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 community/pinot/PKGBUILD create mode 100644 community/pinot/pinot.install (limited to 'community/pinot') diff --git a/community/pinot/PKGBUILD b/community/pinot/PKGBUILD new file mode 100644 index 000000000..2a139fcba --- /dev/null +++ b/community/pinot/PKGBUILD @@ -0,0 +1,46 @@ +# $Id: PKGBUILD 40072 2011-02-19 22:02:17Z ebelanger $ +# Contributor: Alexander Fehr +# Contributor: William Rea +# Maintainer: Daniel J Griffiths + +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" +} diff --git a/community/pinot/pinot.install b/community/pinot/pinot.install new file mode 100644 index 000000000..55ab40426 --- /dev/null +++ b/community/pinot/pinot.install @@ -0,0 +1,15 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor + echo "Starting with 0.63, the service is auto-started. " + echo "The file that enables this is located at " + echo "/etc/xdg/autostart/pinot-dbus-daemon.desktop" + echo "Delete this file if you don't want the auto-start." +} + +post_upgrade() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} -- cgit v1.2.3-54-g00ecf