summaryrefslogtreecommitdiff
path: root/community/lucene++/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/lucene++/PKGBUILD')
-rw-r--r--community/lucene++/PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/community/lucene++/PKGBUILD b/community/lucene++/PKGBUILD
new file mode 100644
index 000000000..d5a9410d2
--- /dev/null
+++ b/community/lucene++/PKGBUILD
@@ -0,0 +1,40 @@
+# $Id: PKGBUILD 105669 2014-02-13 11:02:33Z spupykin $
+# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
+# Contributor: Rafael Ferreira <josephgbr@archlinux.info>
+
+pkgname=lucene++
+pkgver=3.0.5
+pkgrel=2
+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')
+makedepends=('boost' 'cmake')
+source=(https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_$pkgver.tar.gz)
+md5sums=('da785510716a759d7d37a2ee52cb8140')
+
+prepare() {
+ mkdir build
+ sed -i \
+ -e 's#SET(LUCENE++_VERSION_REVISION.*#SET(LUCENE++_VERSION_REVISION "5")#' \
+ -e 's#SET(LUCENE++_VERSION_PATCH.*#SET(LUCENE++_VERSION_PATCH "0")#' \
+ $srcdir/LucenePlusPlus-rel_$pkgver/CMakeLists.txt
+}
+
+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
+}