SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libjson-c"

# SliTaz package receipt.

PACKAGE="libjson-c"
VERSION="0.15-20200726"
CATEGORY="development"
SHORT_DESC="A JSON implementation in C."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="MIT"
WEB_SITE="https://github.com/json-c/json-c"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="$WEB_SITE/archive/json-c-$VERSION.tar.gz"

DEPENDS=""
BUILD_DEPENDS="automake bash libtool cmake"

HOST_ARCH="i486 x86_64"

current_version()
{
    wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
    sed '/archive.*tar/!d;s|.*/json-c-\(.*\).tar.*|\1|;q'
}

# Rules to configure and make the package.
compile_rules()
{
    mkdir build && cd build

    cmake \
       -DCMAKE_INSTALL_PREFIX=/usr \
       -DCMAKE_INSTALL_LIBDIR=/usr/lib \
       -DBUILD_STATIC_LIBS=OFF \
       -DCMAKE_BUILD_TYPE=Release \
    -Wno-dev .. &&
    make -j 1 &&
    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
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)