updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / pinot-svn / PKGBUILD
blob528e2a7397f4f721501b364d13f243d3bb49f74d
1 # Contributor: Lorenzo Nizzi Grifi Gargiolli <lorenzo.nizzi.grifi@gmail.com>
3 pkgname=pinot-svn
4 pkgver=1561
5 pkgrel=1
6 pkgdesc="Personal search and metasearch tool - Development version"
7 arch=('i686' 'x86_64')
8 url="http://pinot.berlios.de/"
9 license=('GPL')
10 depends=('gtkmm' 'xapian-core' 'libtextcat' 'sqlite3' 'libxml++2' 'curl' 'gmime'
11          'dbus-glib' 'shared-mime-info' 'libexif' 'taglib' 'hicolor-icon-theme')
12 makedepends=('boost' 'desktop-file-utils' 'svn')
13 optdepends=('unzip: ZIP files extraction'
14             'poppler: PDF to text conversion'
15             'catdvi: DVI to text conversion'
16             'djvulibre: DjVu text extraction'
17             'unrtf: RTF to HTML conversion'
18             'antiword: MS Word to text conversion'
19             'catdoc: XLS and PPT to text conversion'
20             'deskbar-applet: Pinot Deskbar-Applet module')
21 install=pinot.install
22 replaces=('pinot')
23 conflicts=('pinot')
24 provides=('pinot-git=$pkgver' 'pinot')
26 _svnmod="pinot"
27 _svntrunk="http://svn.berlios.de/svnroot/repos/pinot/trunk"
29 build() {
30     cd $startdir/src/
31     mkdir -p ~/.subversion; touch ~/.subversion/servers
33     msg "Connecting to the SVN server...."
35     svn co $_svntrunk $_svnmod -r $pkgver 
37     [ -d ./$_svnmod-build ] && rm -fr ./$_svnmod-build
38     cp -r ./$_svnmod ./$_svnmod-build
39     cd ./$_svnmod-build
41     msg "SVN checkout done or server timeout"
42     msg "Starting make..."
44   ./autogen.sh --prefix=/usr --sysconfdir=/etc || return 1
45   make || return 1
46   make DESTDIR="$pkgdir" install || return 1
48  }