wok annotate lucene++/receipt @ rev 24568

sokojs: add shrink.sh (again)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Feb 26 16:37:15 2022 +0000 (2022-02-26)
parents 5d97883e7e44
children
rev   line source
al@18514 1 # SliTaz package receipt.
al@18514 2
al@18514 3 PACKAGE="lucene++"
maniac@21616 4 VERSION="3.0.7+git"
maniac@21616 5 GITHASH="972c9cb37"
al@18514 6 CATEGORY="utilities"
al@18514 7 SHORT_DESC="C++ port of the Java Lucene library"
al@18514 8 MAINTAINER="al.bobylev@gmail.com"
al@18514 9 LICENSE="Apache"
al@18514 10 WEB_SITE="https://github.com/luceneplusplus/LucenePlusPlus"
al@18514 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
maniac@21616 12 #WGET_URL="$WEB_SITE/archive/rel_$VERSION.tar.gz"
maniac@21616 13 WGET_URL="$WEB_SITE/archive/$GITHASH.tar.gz"
al@18514 14
al@18514 15 DEPENDS="libboost-date-time libboost-filesystem libboost-iostreams \
al@18514 16 libboost-regex libboost-system libboost-thread libboost-chrono"
al@18514 17 BUILD_DEPENDS="cmake libboost-date-time-dev libboost-filesystem-dev \
al@18514 18 libboost-regex-dev libboost-thread-dev libboost-iostreams-dev"
al@18514 19
pascal@24308 20 # What is the latest version available today?
pascal@24308 21 current_version()
pascal@24308 22 {
pascal@24308 23 wget -O - $WEB_SITE/tags 2>/dev/null | \
pascal@24308 24 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
pascal@24308 25 }
pascal@24308 26
al@18514 27 # Rules to configure and make the package.
al@18514 28 compile_rules()
al@18514 29 {
al@18514 30 mkdir build; cd build
maniac@21616 31 cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
maniac@21616 32 -DENABLE_CUSTOM_ALLOCATOR='FALSE' \
maniac@21616 33 -DCMAKE_CXX_FLAGS='-DBOOST_VARIANT_USE_RELAXED_GET_BY_DEFAULT'
al@18514 34 make &&
al@18514 35 make install
al@18514 36 }
al@18514 37
al@18514 38 # Rules to gen a SliTaz package suitable for Tazpkg.
al@18514 39 genpkg_rules()
al@18514 40 {
al@18514 41 mkdir -p $fs/usr/lib
al@18514 42 cp -a $install/usr/lib/*.so* $fs/usr/lib
al@18514 43 }