wok annotate jansson/receipt @ rev 25787
qps: fix wget_url
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Sep 26 07:22:41 2024 +0000 (3 months ago) |
parents | 20ad21d5532c |
children |
rev | line source |
---|---|
pankso@16420 | 1 # SliTaz package receipt. |
pankso@16420 | 2 |
pankso@16420 | 3 PACKAGE="jansson" |
Hans-G?nter@24684 | 4 VERSION="2.14" |
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@25635 | 9 WEB_SITE="https://github.com/akheron/jansson" |
Hans-G?nter@24684 | 10 |
pascal@20662 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@20662 | 12 WGET_URL="https://github.com/akheron/jansson/archive/v$VERSION.tar.gz" |
pankso@16420 | 13 |
pankso@16420 | 14 DEPENDS="xorg-libX11" |
Hans-G?nter@24684 | 15 BUILD_DEPENDS="automake libtool xorg-libX11-dev" |
Hans-G?nter@24684 | 16 |
Hans-G?nter@24684 | 17 HOST_ARCH="i486 arm" |
pankso@16420 | 18 |
pascal@25599 | 19 # What is the latest version available today? |
pascal@24055 | 20 current_version() |
pascal@24055 | 21 { |
pascal@24055 | 22 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@25599 | 23 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q' |
pascal@24055 | 24 } |
pascal@24055 | 25 |
pankso@16420 | 26 # Rules to configure and make the package. |
pankso@16420 | 27 compile_rules() |
pankso@16420 | 28 { |
Hans-G?nter@24684 | 29 autoreconf -i && |
pankso@16420 | 30 ./configure $CONFIGURE_ARGS && |
Hans-G?nter@24684 | 31 make && |
Hans-G?nter@24684 | 32 make install |
pankso@16420 | 33 } |
pankso@16420 | 34 |
pankso@16420 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@16420 | 36 genpkg_rules() |
pankso@16420 | 37 { |
Hans-G?nter@24684 | 38 cook_copy_files *.so* |
pankso@16420 | 39 } |