blob: 105ec3dcb2b2b2f26cf9cb9bf0dd1fd90e1f0073 (
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
|
# $Id$
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Rafael Ferreira <josephgbr@archlinux.info>
pkgname=lucene++
pkgver=3.0.4
pkgrel=1
pkgdesc='C++ port of the popular Java Lucene library'
arch=(i686 x86_64)
url='https://github.com/luceneplusplus/LucenePlusPlus'
license=('GPL' 'Apache')
depends=('boost-libs' 'gcc-libs')
makedepends=('boost' 'cmake')
source=($url/archive/rel_$pkgver.tar.gz
0001-Add-support-for-compiling-with-c-11.patch
0002-Turn-off-custom-allocator-by-default.patch
0003-Fix-accidental-use-of-operator-instead-of-operator.patch)
md5sums=('64c34aa66b3870cc015c5d084a1a2b4e'
'243c87bed96250043f21d4d6ea6b6c6e'
'ab8c8d5484411a9af55121b4d565f746'
'2c1758953b1b3d7c3c14c88b770bcb26')
prepare() {
mkdir build
cd LucenePlusPlus-rel_$pkgver
# http://www.poedit.net/trac/ticket/568
patch -p1 -i ../0001-Add-support-for-compiling-with-c-11.patch
patch -p1 -i ../0002-Turn-off-custom-allocator-by-default.patch
patch -p1 -i ../0003-Fix-accidental-use-of-operator-instead-of-operator.patch
}
build() {
cd build
cmake ../LucenePlusPlus-rel_$pkgver \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_DESTINATION=/usr/lib \
-DBoost_LIBRARY_DIR=/usr/lib \
-DENABLE_CUSTOM_ALLOCATOR='FALSE'
make
}
package() {
cd build
make DESTDIR="$pkgdir" install
}
|