summaryrefslogtreecommitdiff
path: root/social/seeks/PKGBUILD
blob: 2997e1be60afb3d8b4c61e332509f40b51b85916 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Co-maintainer: Gitus < git at shroomrider dot com >
# Co-maintainer: Enjolras < 0enjolras0 at laposte dot net >

pkgname=seeks
pkgver=0.4.0
pkgrel=1
pkgdesc="An open decentralized platform for collaborative search content"
arch=('i686' 'x86_64')
url="http://www.seeks-project.info"
license=('AGPL3')
backup=('etc/logrotate.d/seeks'
    'etc/conf.d/seeks'
    'etc/seeks/config')
depends=('curl' 'libevent'  'protobuf' 'tokyotyrant' 'opencv' 'icu')
makedepends=('docbook2x' 'pkg-config' )
source=("http://downloads.sourceforge.net/project/seeks/hippy/seeks-0.4.0.tar.gz"
    'seeks'
    'seeks.conf.d'
    'seeks.logrotate'
    'logfile.patch')
install='install'

build() {
    cd "$srcdir/$pkgname-$pkgver"

    autoreconf -ivs
    sed -i s/docbook2x-man/docbook2man/ ./configure
    ./configure LDFLAGS="-Wl,--no-as-needed" \
	--prefix=/usr --sysconfdir=/etc \
	--enable-opencv --enable-httpserv-plugin --enable-image-websearch-plugin=yes \
	--enable-xslserializer-plugin --enable-personalization --enable-keepalive --enable-extended-host-patterns
    
    sed -i s/cxflann.h/cv.h/ src/plugins/img_websearch/ocvsurf.cpp
    sed -i s/,--as-needed,/,/ config.status
    
    make
    
}

package() {
    cd  "$srcdir/$pkgname-$pkgver/src/"

    #Changing logdir and logfile options
    #disable plugins cf and query-capture in config
    patch -p0 < "$srcdir/logfile.patch"
    
    cd "$srcdir/$pkgname-$pkgver"

    make DESTDIR="$pkgdir" install
   
    install -D -m644 Licenses  "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
    install -m644 AGPL-3.txt  "${pkgdir}/usr/share/licenses/${pkgname}/"
    install -m644 BSD-yui.txt  "${pkgdir}/usr/share/licenses/${pkgname}/"
    install -D -m755 ../seeks  "${pkgdir}"/etc/rc.d/seeks
    install -D -m644 ../seeks.conf.d "${pkgdir}"/etc/conf.d/seeks
    install -D -m600 ../seeks.logrotate  "${pkgdir}"/etc/logrotate.d/seeks
}
md5sums=('dd80c832f80c34c392be5872239a8d9f'
         '33e6da05cca492019e6aff39684aed26'
         '52e7e06a28974547041012a1cf3207f3'
         'd1aba6739972239c6cd09178807e196f'
         'e352306f5396a1af4dfc81a18bfc5a71')
md5sums=('a2d0b6e7b91036883c0b327ead5e93c0'
         '33e6da05cca492019e6aff39684aed26'
         '52e7e06a28974547041012a1cf3207f3'
         'd1aba6739972239c6cd09178807e196f'
         'e352306f5396a1af4dfc81a18bfc5a71')