wok view libjson-c/receipt @ rev 24159

Up ventoy (1.0.62)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 20 10:05:11 2021 +0000 (2021-12-20)
parents 95e4621e06a2
children ac8ca9758df1
line source
1 # SliTaz package receipt.
3 PACKAGE="libjson-c"
4 VERSION="0.13.1-20180305"
5 CATEGORY="development"
6 SHORT_DESC="A JSON implementation in C."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/json-c/json-c"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/json-c-$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="automake bash libtool"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/json-c-\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 sed -i 's/-Werror /&-Wno-error=unused-but-set-variable /' Makefile*
28 ./autogen.sh &&
29 ./configure \
30 --prefix=/usr \
31 $CONFIGURE_ARGS &&
32 make -j 1 &&
33 make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/lib
40 cp -a $install/usr/lib/*.so* $fs/usr/lib
41 }