# HG changeset patch # User Pascal Bellard # Date 1407842649 -7200 # Node ID 9cd13a23b73596b8e54097cf2feca34e84754a13 # Parent bcb6fa8e2c3601bb9a4a73c1299625413f38e008 Add libjson-c diff -r bcb6fa8e2c36 -r 9cd13a23b735 libjson-c-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libjson-c-dev/receipt Tue Aug 12 13:24:09 2014 +0200 @@ -0,0 +1,21 @@ +# SliTaz package receipt. + +PACKAGE="libjson-c-dev" +VERSION="0.12-20140410" +CATEGORY="development" +SHORT_DESC="A JSON implementation in C, development files" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +WEB_SITE="https://github.com/json-c/json-c" +WANTED="libjson-c" + +DEPENDS="libjson-c" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/include $fs/usr/ + cp -a $install/usr/lib/*a $fs/usr/lib + cp -a $install/usr/lib/pkgconfig $fs/usr/lib +} diff -r bcb6fa8e2c36 -r 9cd13a23b735 libjson-c/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libjson-c/receipt Tue Aug 12 13:24:09 2014 +0200 @@ -0,0 +1,32 @@ +# SliTaz package receipt. + +PACKAGE="libjson-c" +VERSION="0.12-20140410" +CATEGORY="development" +SHORT_DESC="A JSON implementation in C" +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="MIT" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://github.com/json-c/json-c" +WGET_URL="$WEB_SITE/archive/json-c-$VERSION.tar.gz" + +DEPENDS="" +BUILD_DEPENDS="wget bash automake autoconf libtool" + +# Rules to configure and make the package. +compile_rules() +{ + sed -i 's/-Werror /&-Wno-error=unused-but-set-variable /' Makefile* + ./autogen.sh + ./configure --prefix=/usr \ + $CONFIGURE_ARGS && + make && + make DESTDIR=$DESTDIR install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib + cp -a $install/usr/lib/*.so* $fs/usr/lib +}