wok annotate libjson-c/receipt @ rev 24330

updated atftp and atftpd (0.7.2 -> 0.7.5)
author Hans-G?nter Theisgen
date Thu Jan 27 15:48:06 2022 +0100 (2022-01-27)
parents 5ea0ce1cecc0
children
rev   line source
pascal@17004 1 # SliTaz package receipt.
pascal@17004 2
pascal@17004 3 PACKAGE="libjson-c"
pascal@24055 4 VERSION="0.13.1-20180305"
pascal@17004 5 CATEGORY="development"
Hans-G?nter@21245 6 SHORT_DESC="A JSON implementation in C."
pascal@17004 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@17004 8 LICENSE="MIT"
Hans-G?nter@21245 9 WEB_SITE="https://github.com/json-c/json-c"
Hans-G?nter@21245 10
pascal@17004 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@24055 12 WGET_URL="$WEB_SITE/archive/json-c-$VERSION.tar.gz"
pascal@17004 13
pascal@17004 14 DEPENDS=""
Hans-G?nter@21245 15 BUILD_DEPENDS="automake bash libtool"
pascal@17004 16
pascal@24055 17 current_version()
pascal@24055 18 {
pascal@24299 19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
pascal@24055 20 sed '/archive.*tar/!d;s|.*/json-c-\(.*\).tar.*|\1|;q'
pascal@24055 21 }
pascal@24055 22
pascal@17004 23 # Rules to configure and make the package.
pascal@17004 24 compile_rules()
pascal@17004 25 {
pascal@17004 26 sed -i 's/-Werror /&-Wno-error=unused-but-set-variable /' Makefile*
Hans-G?nter@21245 27
Hans-G?nter@21245 28 ./autogen.sh &&
Hans-G?nter@21245 29 ./configure \
Hans-G?nter@21245 30 --prefix=/usr \
pascal@17004 31 $CONFIGURE_ARGS &&
Hans-G?nter@21245 32 make -j 1 &&
pascal@17004 33 make DESTDIR=$DESTDIR install
pascal@17004 34 }
pascal@17004 35
pascal@17004 36 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@17004 37 genpkg_rules()
pascal@17004 38 {
pascal@17004 39 mkdir -p $fs/usr/lib
pascal@17004 40 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@17004 41 }