wok annotate jsoncpp/receipt @ rev 25599

Update some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jul 16 13:38:12 2023 +0000 (2023-07-16)
parents 0f28e2050421
children
rev   line source
pascal@18161 1 # SliTaz package receipt.
pascal@18161 2
pascal@18161 3 PACKAGE="jsoncpp"
Hans-Günter@24692 4 VERSION="1.9.5"
pascal@18161 5 CATEGORY="misc"
pascal@18161 6 SHORT_DESC="A C++ library for interacting with JSON."
pascal@18161 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@18161 8 LICENSE="MIT"
Hans-Günter@21087 9 WEB_SITE="https://github.com/open-source-parsers/jsoncpp"
Hans-Günter@21087 10
pascal@18161 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@18161 12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
pascal@18161 13
Hans-Günter@22975 14 DEPENDS="gcc83-lib-base"
Hans-Günter@22975 15 BUILD_DEPENDS="cmake gcc83 pkg-config py3k"
pascal@18161 16
pascal@25599 17 # What is the latest version available today?
pascal@24055 18 current_version()
pascal@24055 19 {
pascal@24055 20 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
pascal@25599 21 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
pascal@24055 22 }
pascal@24055 23
pascal@18161 24 # Rules to configure and make the package.
pascal@18161 25 compile_rules()
pascal@18161 26 {
Hans-Günter@22976 27 export CC=gcc-83
Hans-Günter@22976 28 export CXX=g++-83
Hans-Günter@22976 29
Hans-Günter@24692 30 mkdir _build &&
Hans-Günter@24692 31 cd _build &&
Hans-Günter@21087 32 cmake .. \
Hans-Günter@24692 33 -D CMAKE_CXX_FLAGS="-ffloat-store" \
Hans-Günter@24692 34 -D CMAKE_INSTALL_PREFIX=/usr &&
Hans-Günter@22975 35 make &&
Hans-Günter@24692 36 make install DESTDIR=$DESTDIR
pascal@18161 37 }
pascal@18161 38
pascal@18161 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@18161 40 genpkg_rules()
pascal@18161 41 {
Hans-Günter@22975 42 cp -a $install/* $fs
pascal@18161 43 }