updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / seeks-git / PKGBUILD
blobbfd1548cf5f70b696877fc8165cea23556c0a8c0
1 # Maintainer: Reventlov <nontunauraspasmonmail@gmail.com>
3 pkgname=seeks-git
4 pkgver=20110731
5 pkgrel=3
6 pkgdesc="An Open Decentralized Platform for Collaborative Search, Filtering and content Curation. (with daemon, manpages and image-websearch-plugin)"
7 arch=('i686' 'x86_64')
8 url="http://www.seeks-project.info"
9 license=('custom:"AGPL3"')
10 depends=('pcre' 'curl' 'libxml2' 'libevent' 'protobuf' 'tokyocabinet' 'opencv' 'icu')
11 makedepends=('docbook2x' 'git' 'pkg-config')
12 conflicts=('seeks' 'seeks-last')
13 source=('img_websearch.patch'
14                 'docbook2man.patch'
15                 'seeksdaemon'
16                 'seeks.conf.d')
17 md5sums=('3f0178a6928c37cf3beeee02e3cd57d3'
18          'f568d26877f9f7029794d6bc34911986'
19          '7bf790955b49498c6e97fcc61ed22720'
20          '0ce52c76122d086ed1311679626b7678')
21 install=seeks.install
22 _gitroot="git://seeks.git.sourceforge.net/gitroot/seeks/seeks"
23 _gitname="seeks"
25 build() {
26         msg "Connecting to the GIT server...."
28                 if [[ -d ${srcdir}/${_gitname} ]] ; then
29                         cd $srcdir/${_gitname}
30         git pull origin
31                 msg "The local files are updated..."
32                 else
33                         git clone ${_gitroot}
34         fi
36                 msg "GIT checkout done."
37                 cd $srcdir
39                 msg "Start patching..."
40                 #Changing #include <cxflann.h> to #include <cv.h> (opencv)
41                 patch -p0 < "$srcdir/img_websearch.patch"
43                 msg "Start configurating..."
44                 cd $srcdir/$_gitname
45                 ./autogen.sh
46                 cd $srcdir
48                 msg "Start patching..."
49                 #Changing docbook2xman to docbook2man
50                 patch -p0 < "$srcdir/docbook2man.patch"
52                 msg "Start making..."
53                 cd $srcdir/$_gitname
54                 ./configure --prefix=/usr --sysconfdir=/etc --enable-httpserv-plugin --enable-image-websearch-plugin=yes
55                 sed -i s/-Wl,--as-needed// config.status
56                 make $MAKEFLAGS
59 package() {
60                 cd "$srcdir/$_gitname"
61                 make DESTDIR="$pkgdir" install
62                 mkdir -p $pkgdir/usr/share/licenses/seeks && cp COPYING $pkgdir/usr/share/licenses/seeks
63                 install -D -m644 Licenses  "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
64                 install -D -m644 AGPL-3.txt  "${pkgdir}/usr/share/licenses/${pkgname}/"
65                 install -D -m644 BSD-yui.txt  "${pkgdir}/usr/share/licenses/${pkgname}/"
66                 install -D -m755  $srcdir/seeksdaemon  "${pkgdir}"/etc/rc.d/seeks
67                 install -D -m644  $srcdir/seeks.conf.d "${pkgdir}"/etc/conf.d/seeks
68                 install -D -m644 "${pkgdir}"/etc/seeks/cf-config "${pkgdir}"/usr/share/seeks/config/cf-config.example
69                 install -D -m644 "${pkgdir}"/etc/seeks/config "${pkgdir}"/usr/share/seeks/config/config.example
70                 install -D -m644 "${pkgdir}"/etc/seeks/httpserv-config "${pkgdir}"/usr/share/seeks/config/httpserv-config.example
71                 install -D -m644 "${pkgdir}"/etc/seeks/img-websearch-config "${pkgdir}"/usr/share/seeks/config/img-websearch-config.example
72                 install -D -m644 "${pkgdir}"/etc/seeks/lsh-config "${pkgdir}"/usr/share/seeks/config/lsh-config.example
73                 install -D -m644 "${pkgdir}"/etc/seeks/query-capture-config "${pkgdir}"/usr/share/seeks/config/query-capture-config.example
74                 install -D -m644 "${pkgdir}"/etc/seeks/uri-capture-config "${pkgdir}"/usr/share/seeks/config/uri-capture-config.example
75                 install -D -m644 "${pkgdir}"/etc/seeks/websearch-config "${pkgdir}"/usr/share/seeks/config/websearch-config.example
76                 rm "${pkgdir}"/etc/seeks/*config