blob: 57834619c43df56bd5813407c2c40fec93dde6ad (
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
|
# $Id: PKGBUILD 62283 2012-01-19 00:04:00Z arodseth $
# Maintainer: Alexander Rødseth
# Contributor: Alois Nespor <alois.nespor@gmail.com>
# Contributor: Tobias Powalowski <tpowa@archlinux.org>
pkgname=clucene
pkgver=2.3.3.4
pkgrel=3
pkgdesc="C++ port of the high-performance text search engine Lucene"
arch=('i686' 'x86_64' 'mips64el')
url="http://clucene.sourceforge.net/"
license=('APACHE' 'LGPL')
depends=('gcc-libs' 'zlib' 'boost-libs')
makedepends=('cmake' 'boost')
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-core-$pkgver.tar.gz")
sha256sums=('ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab')
build() {
cd "$srcdir"
sed 's:core:core -lclucene-shared:' \
-i "$pkgname-core-$pkgver/src/core/libclucene-core.pc.cmake"
mkdir build
cd build
cmake "../$pkgname-core-$pkgver" \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DENABLE_ASCII_MODE=OFF \
-DENABLE_PACKAGING=OFF \
-DDISABLE_MULTITHREADING=OFF
make
}
package() {
cd "$srcdir/build"
make DESTDIR="$pkgdir" install
}
# vim:set ts=2 sw=2 et:
|