wok-6.x annotate libjson-c/receipt @ rev 22152
linld: hack for VCPI
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Nov 06 21:02:18 2019 +0100 (2019-11-06) |
parents | 9cd13a23b735 |
children | 5ea0ce1cecc0 |
rev | line source |
---|---|
pascal@17004 | 1 # SliTaz package receipt. |
pascal@17004 | 2 |
pascal@17004 | 3 PACKAGE="libjson-c" |
Hans-G?nter@21245 | 4 VERSION="0.13.1" |
Hans-G?nter@21245 | 5 REL_DATE="20180305" |
pascal@17004 | 6 CATEGORY="development" |
Hans-G?nter@21245 | 7 SHORT_DESC="A JSON implementation in C." |
pascal@17004 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@17004 | 9 LICENSE="MIT" |
Hans-G?nter@21245 | 10 WEB_SITE="https://github.com/json-c/json-c" |
Hans-G?nter@21245 | 11 |
pascal@17004 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@21245 | 13 WGET_URL="$WEB_SITE/archive/json-c-$VERSION-$REL_DATE.tar.gz" |
pascal@17004 | 14 |
pascal@17004 | 15 DEPENDS="" |
Hans-G?nter@21245 | 16 BUILD_DEPENDS="automake bash libtool" |
pascal@17004 | 17 |
pascal@17004 | 18 # Rules to configure and make the package. |
pascal@17004 | 19 compile_rules() |
pascal@17004 | 20 { |
pascal@17004 | 21 sed -i 's/-Werror /&-Wno-error=unused-but-set-variable /' Makefile* |
Hans-G?nter@21245 | 22 |
Hans-G?nter@21245 | 23 ./autogen.sh && |
Hans-G?nter@21245 | 24 ./configure \ |
Hans-G?nter@21245 | 25 --prefix=/usr \ |
pascal@17004 | 26 $CONFIGURE_ARGS && |
Hans-G?nter@21245 | 27 make -j 1 && |
pascal@17004 | 28 make DESTDIR=$DESTDIR install |
pascal@17004 | 29 } |
pascal@17004 | 30 |
pascal@17004 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@17004 | 32 genpkg_rules() |
pascal@17004 | 33 { |
pascal@17004 | 34 mkdir -p $fs/usr/lib |
pascal@17004 | 35 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@17004 | 36 } |