wok-next view jq/receipt @ rev 21449

updated slock (1.1 -> 1.4)
author Hans-G?nter Theisgen
date Thu May 07 07:51:56 2020 +0100 (2020-05-07)
parents d2950281f122
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="jq"
4 VERSION="1.5"
5 CATEGORY="utilities"
6 SHORT_DESC="Lightweight and flexible command-line JSON processor"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://stedolan.github.io/jq/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/stedolan/jq/releases/download/jq-$VERSION/$TARBALL"
14 BUILD_DEPENDS="oniguruma-dev"
15 SPLIT="$PACKAGE-dev $PACKAGE-static:static"
17 compile_rules() {
18 case $SET in
19 static) SET_ARGS="--disable-shared --enable-all-static";;
20 *) SET_ARGS="";;
21 esac
23 ./configure \
24 --disable-static \
25 $SET_ARGS \
26 $CONFIGURE_ARGS &&
27 fix libtool &&
28 make &&
29 make install || return 1
31 # clean
32 if [ "$SET" == 'static' ]; then
33 rm -r $install/usr/include $install/usr/lib $install/usr/share
34 fi
35 }
37 genpkg_rules() {
38 case $PACKAGE in
39 jq)
40 copy @std
41 DEPENDS="oniguruma"
42 TAGS="json"
43 ;;
44 jq-static)
45 copy jq
46 CAT="utilities|statically linked"
47 ;;
48 *-dev)
49 copy @dev
50 ;;
51 esac
52 }