SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libjson"

# SliTaz package receipt.

PACKAGE="libjson"
VERSION="7.6.1"
CATEGORY="misc"
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="BSD"
SHORT_DESC="A super-effiecient JSON reader and writer."
WEB_SITE="https://sourceforge.net/projects/libjson/"
TARBALL="${PACKAGE}_$VERSION.zip"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS=""
BUILD_DEPENDS=""

# What is the latest version available today?
current_version()
{
    wget -O - https://sourceforge.net/projects/libjson/files/ 2>/dev/null | \
    sed '/scope="row/!d;s|.*/libjson_||;s|.zip.*||;q'
}

# Rules to configure and make the package.
compile_rules()
{
    unset CXXFLAGS
    mkdir Objects_static Objects_shared _internal/Source/Dependencies
    mkdir -p $DESTDIR/usr/lib 
    sed -i 's|^in[a-z]*_path *= |&$(DESTDIR)|' makefile
    make SHARED=1 all &&
    make DESTDIR=$DESTDIR install
    make DESTDIR=$DESTDIR SHARED=1 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
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)