[arch-commits] Commit in lucene++/repos (4 files)
Bartłomiej Piotrowski
bpiotrowski at archlinux.org
Sat Oct 8 13:22:58 UTC 2016
Date: Saturday, October 8, 2016 @ 13:22:58
Author: bpiotrowski
Revision: 191645
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
lucene++/repos/community-staging-i686/
lucene++/repos/community-staging-i686/PKGBUILD
(from rev 191644, lucene++/trunk/PKGBUILD)
lucene++/repos/community-staging-x86_64/
lucene++/repos/community-staging-x86_64/PKGBUILD
(from rev 191644, lucene++/trunk/PKGBUILD)
-----------------------------------+
community-staging-i686/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 47 ++++++++++++++++++++++++++++++++++++
2 files changed, 94 insertions(+)
Copied: lucene++/repos/community-staging-i686/PKGBUILD (from rev 191644, lucene++/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2016-10-08 13:22:58 UTC (rev 191645)
@@ -0,0 +1,47 @@
+# $Id$
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Rafael Ferreira <josephgbr at archlinux.info>
+
+pkgname=lucene++
+pkgver=3.0.7
+_githash='972c9cb37'
+pkgrel=8
+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' 'subversion')
+#source=(https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_$pkgver.tar.gz)
+source=("https://github.com/luceneplusplus/LucenePlusPlus/archive/${_githash}.tar.gz")
+md5sums=('486af3a6da7a119669e64c979049852c')
+
+prepare() {
+ mkdir build
+ #ln -s LucenePlusPlus-rel_$pkgver LucenePlusPlus-$pkgver
+ #ln -s LucenePlusPlus-master LucenePlusPlus-$pkgver
+ ln -s LucenePlusPlus-$_githash* LucenePlusPlus-$pkgver
+ 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-$pkgver/CMakeLists.txt
+}
+
+build() {
+ cd build
+
+ cmake ../LucenePlusPlus-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_DESTINATION=/usr/lib \
+ -DBoost_LIBRARY_DIR=/usr/lib \
+ -DENABLE_CUSTOM_ALLOCATOR='FALSE' \
+ -DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT'
+ # RELAXED for boost 1.58 breakage, remove when lucene++ updates
+
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
Copied: lucene++/repos/community-staging-x86_64/PKGBUILD (from rev 191644, lucene++/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2016-10-08 13:22:58 UTC (rev 191645)
@@ -0,0 +1,47 @@
+# $Id$
+# Contributor: Bartłomiej Piotrowski <bpiotrowski at archlinux.org>
+# Contributor: Rafael Ferreira <josephgbr at archlinux.info>
+
+pkgname=lucene++
+pkgver=3.0.7
+_githash='972c9cb37'
+pkgrel=8
+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' 'subversion')
+#source=(https://github.com/luceneplusplus/LucenePlusPlus/archive/rel_$pkgver.tar.gz)
+source=("https://github.com/luceneplusplus/LucenePlusPlus/archive/${_githash}.tar.gz")
+md5sums=('486af3a6da7a119669e64c979049852c')
+
+prepare() {
+ mkdir build
+ #ln -s LucenePlusPlus-rel_$pkgver LucenePlusPlus-$pkgver
+ #ln -s LucenePlusPlus-master LucenePlusPlus-$pkgver
+ ln -s LucenePlusPlus-$_githash* LucenePlusPlus-$pkgver
+ 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-$pkgver/CMakeLists.txt
+}
+
+build() {
+ cd build
+
+ cmake ../LucenePlusPlus-$pkgver \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIB_DESTINATION=/usr/lib \
+ -DBoost_LIBRARY_DIR=/usr/lib \
+ -DENABLE_CUSTOM_ALLOCATOR='FALSE' \
+ -DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT'
+ # RELAXED for boost 1.58 breakage, remove when lucene++ updates
+
+ make
+}
+
+package() {
+ cd build
+ make DESTDIR="$pkgdir" install
+}
More information about the arch-commits
mailing list