wok view clucene/receipt @ rev 24783
Up apache-ant (1.10.12)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 20 12:11:06 2022 +0000 (2022-03-20) |
parents | 1dce3fb32d2b |
children | ad0bc3efbf37 |
line source
1 # SliTaz package receipt.
3 PACKAGE="clucene"
4 VERSION="2.3.3.4"
5 CATEGORY="system-tools"
6 TAGS="text indexing"
7 SHORT_DESC="C++ port of Lucene, a high-performance, full-featured text search engine."
8 MAINTAINER="domcox@slitaz.org"
9 LICENSE="LGPL Apache"
10 WEB_SITE="https://sourceforge.net/projects/clucene/"
12 SOURCE="clucene-core"
13 TARBALL="$SOURCE-$VERSION.tar.gz"
14 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
16 BUILD_DEPENDS="cmake"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/clucene/files/clucene-core-unstable/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*core-||;s|.tar.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir build
30 cd build
31 cmake .. \
32 -DCMAKE_INSTALL_PREFIX=/usr &&
33 make
34 make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }