updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / strigi-git / PKGBUILD
blobda45daf004fb5e6801acbce4656c950f15839230
1 pkgname=strigi-git
2 pkgver=20110815
3 pkgrel=1
4 pkgdesc="Fast crawling desktop search engine with Qt4 GUI"
5 arch=('i686' 'x86_64')
6 url="http://strigi.sourceforge.net/"
7 license=('GPL')
8 depends=('qt' 'bzip2' 'exiv2' 'libxml2' 'boost-libs')
9 makedepends=('git' 'cmake' 'boost')
10 conflicts=('strigi')
11 provides=('strigi')
12 groups=('kde4-git')
14 _gitroot="git://anongit.kde.org/strigi"
15 _gitname="strigi"
17 build() {
18   cd $srcdir
19   msg "Connecting to the GIT server...."
20   
21   if [[ -d $srcdir/$_gitname ]] ; then
22     cd $srcdir/$_gitname 
23     git pull origin
24     git submodule update
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28     cd $srcdir/$_gitname
29     git submodule update --init
30   fi
31   
32   msg "GIT checkout done"
33   msg "Starting make..."
34   if [[ -d ${srcdir}/build ]]; then
35     msg "Cleaning the previous build directory..."
36     rm -rf ${srcdir}/build
37   fi
38   mkdir $srcdir/build
39   cd $srcdir/build
40   cmake $startdir/src/$_gitname -DCMAKE_BUILD_TYPE=debugfull \
41                 -DCMAKE_INSTALL_PREFIX=/usr \
42                 -DENABLE_INOTIFY=ON \
43                 -DENABLE_LOG4CXX=OFF \
44                 -DENABLE_FAM=OFF \
45                 -DENABLE_CLUCENE=OFF \
46                 -DENABLE_CLUCENE_NG=OFF \
47                 -DENABLE_FFMPEG=OFF \
48                 -DENABLE_XINE=OFF
49   make
52 package() {
53   cd "${srcdir}/build/libstreams"
54   make DESTDIR="${pkgdir}" install
56   cd "${srcdir}/build/libstreamanalyzer"
57   make DESTDIR="${pkgdir}" install
59   cd "${srcdir}/build/strigiclient/lib/searchclient/qtdbus"
60   make DESTDIR="${pkgdir}" install
61   
62   cd "${srcdir}/build/strigiutils"
63   make DESTDIR="${pkgdir}" install