wok view jq/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents f9a649f31165
children 20ad21d5532c
line source
1 # SliTaz package receipt.
3 PACKAGE="jq"
4 VERSION="1.6"
5 CATEGORY="utilities"
6 TAGS="json"
7 SHORT_DESC="A lightweight and flexible command-line JSON processor."
8 MAINTAINER="nneul@neulinger.org"
9 LICENSE="MIT"
10 WEB_SITE="https://stedolan.github.io/jq/"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="https://github.com/stedolan/$PACKAGE/releases/download/$PACKAGE-$VERSION/$TARBALL"
15 current_version()
16 {
17 wget -O - ${WGET_URL%/down*} 2>/dev/null | \
18 sed '/archive.*tar/!d;s|.*/jq-\(.*\).tar.*|\1|;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 --with-oniguruma=no \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr
38 cp -a $install/usr/bin $fs/usr
39 }