SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "jq"

# SliTaz package receipt.

PACKAGE="jq"
VERSION="1.6"
CATEGORY="utilities"
TAGS="json"
SHORT_DESC="A lightweight and flexible command-line JSON processor."
MAINTAINER="nneul@neulinger.org"
LICENSE="MIT"
WEB_SITE="https://stedolan.github.io/jq/"

TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://github.com/stedolan/$PACKAGE/releases/download/$PACKAGE-$VERSION/$TARBALL"

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

# Rules to configure and make the package.
compile_rules()
{
    ./configure                \
        --prefix=/usr            \
        --infodir=/usr/share/info    \
        --mandir=/usr/share/man        \
        --with-oniguruma=no        \
        $CONFIGURE_ARGS &&
    make &&
    make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr
    cp -a $install/usr/bin    $fs/usr
}
6047 packages and 209931 files in current database (Wed Jun 26 15:35:30 2024)