# $Id: PKGBUILD 62283 2012-01-19 00:04:00Z arodseth $ # Maintainer: Alexander Rødseth # Contributor: Alois Nespor # Contributor: Tobias Powalowski 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: