SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "clucene"

# SliTaz package receipt.

PACKAGE="clucene"
VERSION="2.3.3.4"
CATEGORY="system-tools"
TAGS="text indexing"
SHORT_DESC="C++ port of Lucene, a high-performance, full-featured text search engine."
MAINTAINER="domcox@slitaz.org"
LICENSE="LGPL Apache"
WEB_SITE="https://sourceforge.net/projects/clucene/"

SOURCE="clucene-core"
TARBALL="$SOURCE-$VERSION.tar.gz"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

BUILD_DEPENDS="cmake"

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/clucene/files/clucene-core-unstable/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
    sed '/scope="row/!d;s|.*core-||;s|.tar.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir    build
    cd    build
    cmake    ..                \
        -DCMAKE_INSTALL_PREFIX=/usr &&
    make
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $install/usr/lib/*.so*    $fs/usr/lib
}
5935 packages and 845883 files in cooking database (Sun Jun 2 00:46:56 2024)