wok-current annotate jansson/receipt @ rev 24109
Up xplanet (1.3.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 28 09:25:18 2021 +0000 (2021-09-28) |
parents | f5c4924e8cd9 |
children | 6ee95ce8dd55 |
rev | line source |
---|---|
pankso@16420 | 1 # SliTaz package receipt. |
pankso@16420 | 2 |
pankso@16420 | 3 PACKAGE="jansson" |
pascal@20662 | 4 VERSION="2.12" |
pankso@16420 | 5 CATEGORY="x-window" |
pankso@16420 | 6 SHORT_DESC="C library for encoding, decoding and manipulating JSON data." |
pankso@16420 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@16420 | 8 LICENSE="GPL2" |
pascal@20662 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@16420 | 10 WEB_SITE="http://www.digip.org/jansson/" |
pascal@20662 | 11 WGET_URL="https://github.com/akheron/jansson/archive/v$VERSION.tar.gz" |
pankso@16420 | 12 HOST_ARCH="i486 arm" |
pankso@16420 | 13 |
pankso@16420 | 14 DEPENDS="xorg-libX11" |
pascal@20662 | 15 BUILD_DEPENDS="xorg-libX11-dev automake libtool" |
pankso@16420 | 16 |
pascal@24055 | 17 current_version() |
pascal@24055 | 18 { |
pascal@24055 | 19 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 20 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 21 } |
pascal@24055 | 22 |
pankso@16420 | 23 # Rules to configure and make the package. |
pankso@16420 | 24 compile_rules() |
pankso@16420 | 25 { |
pascal@20662 | 26 autoreconf -i |
pankso@16420 | 27 ./configure $CONFIGURE_ARGS && |
pankso@16420 | 28 make && make install |
pankso@16420 | 29 } |
pankso@16420 | 30 |
pankso@16420 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16420 | 32 genpkg_rules() |
pankso@16420 | 33 { |
pankso@16420 | 34 mkdir -p $fs/usr/lib |
pankso@16420 | 35 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@16420 | 36 } |