# 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|.*href="|"https://sourceforge.net|;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 }