wok view jsoncpp/receipt @ rev 24055

Add current_version for most github hosted softwares
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 08 08:46:05 2021 +0000 (2021-06-08)
parents a9f09a1e9b06
children 0f28e2050421
line source
1 # SliTaz package receipt.
3 PACKAGE="jsoncpp"
4 VERSION="1.9.2"
5 CATEGORY="misc"
6 SHORT_DESC="A C++ library for interacting with JSON."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/open-source-parsers/jsoncpp"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
14 DEPENDS="gcc83-lib-base"
15 BUILD_DEPENDS="cmake gcc83 pkg-config py3k"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 export CC=gcc-83
27 export CXX=g++-83
29 mkdir build &&
30 cd build &&
31 cmake .. \
32 -DCMAKE_CXX_FLAGS="-ffloat-store" \
33 -DCMAKE_INSTALL_PREFIX=/usr &&
34 make &&
35 make DESTDIR=$DESTDIR install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 cp -a $install/* $fs
42 }