1 # Maintainer: Reventlov <nontunauraspasmonmail@gmail.com>
6 pkgdesc="An Open Decentralized Platform for Collaborative Search, Filtering and content Curation. (with daemon, manpages and image-websearch-plugin)"
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'
17 md5sums=('3f0178a6928c37cf3beeee02e3cd57d3'
18 'f568d26877f9f7029794d6bc34911986'
19 '7bf790955b49498c6e97fcc61ed22720'
20 '0ce52c76122d086ed1311679626b7678')
22 _gitroot="git://seeks.git.sourceforge.net/gitroot/seeks/seeks"
26 msg "Connecting to the GIT server...."
28 if [[ -d ${srcdir}/${_gitname} ]] ; then
29 cd $srcdir/${_gitname}
31 msg "The local files are updated..."
36 msg "GIT checkout done."
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..."
48 msg "Start patching..."
49 #Changing docbook2xman to docbook2man
50 patch -p0 < "$srcdir/docbook2man.patch"
54 ./configure --prefix=/usr --sysconfdir=/etc --enable-httpserv-plugin --enable-image-websearch-plugin=yes
55 sed -i s/-Wl,--as-needed// config.status
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