wok-next view jq/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
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 }