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