summaryrefslogtreecommitdiff
path: root/community/lucene++/PKGBUILD
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-01-06 03:31:16 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-01-06 03:31:16 +0000
commit3b88fa9d064e61705923ef42381b467bc8ecfd32 (patch)
treedbbb364001beff91bdec39c13023b6c742c5e539 /community/lucene++/PKGBUILD
parentf3c8ccda77966505f7c3f0817fd8c78384411a5a (diff)
Mon Jan 6 03:27:02 UTC 2014
Diffstat (limited to 'community/lucene++/PKGBUILD')
-rw-r--r--community/lucene++/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/community/lucene++/PKGBUILD b/community/lucene++/PKGBUILD
new file mode 100644
index 000000000..105ec3dcb
--- /dev/null
+++ b/community/lucene++/PKGBUILD
@@ -0,0 +1,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
+}