mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 06:07:15 +08:00
63 lines
1.7 KiB
Bash
63 lines
1.7 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
|
|
# contributor (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=strigi
|
|
pkgver=0.7.7
|
|
pkgrel=2
|
|
pkgdesc="Fast crawling desktop search engine with Qt4 GUI"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.vandenoever.info/software/strigi/"
|
|
license=('GPL2')
|
|
depends=('bzip2' 'exiv2' 'libxml2' 'boost-libs' 'ffmpeg')
|
|
makedepends=('qt' 'cmake' 'pkgconfig' 'boost')
|
|
provides=('strigi-git')
|
|
replaces=('strigi-git')
|
|
conflicts=('strigi-git')
|
|
source=("http://chakra-linux.org/sources/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
|
|
"new_ffmpeg.patch")
|
|
md5sums=('ca0a0fd5c2b99879f6330837aeede996'
|
|
'86f8d736f21daab6a3b666cf00037099')
|
|
options=('!libtool')
|
|
|
|
build() {
|
|
cd "${srcdir}"/${pkgname}-${pkgver}
|
|
sed -i '/stdio/a #include <unistd.h>' strigidaemon/bin/daemon/eventlistener/eventlistenerqueue.cpp
|
|
cd "${srcdir}"/${pkgname}-${pkgver}/libstreamanalyzer
|
|
|
|
mv "${srcdir}"/new_ffmpeg.patch .
|
|
patch -p1 < new_ffmpeg.patch
|
|
cd "${srcdir}"
|
|
mkdir build
|
|
cd build
|
|
cmake ../${pkgname}-${pkgver} \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DENABLE_INOTIFY=ON \
|
|
-DENABLE_LOG4CXX=OFF \
|
|
-DENABLE_FAM=OFF \
|
|
-DENABLE_CLUCENE=OFF \
|
|
-DENABLE_CLUCENE_NG=OFF \
|
|
-DENABLE_FFMPEG=ON
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/build/libstreams"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
cd "${srcdir}/build/libstreamanalyzer"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
cd "${srcdir}/build/strigiclient/lib/searchclient/qtdbus"
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
cd "${srcdir}/build/strigiutils"
|
|
make DESTDIR="${pkgdir}" install
|
|
}
|