wok annotate libjson/receipt @ rev 24482
updated diffutils (3.7 -> 3.8)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Feb 18 14:45:09 2022 +0100 (2022-02-18) |
parents | 86790a278e70 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
pascal@16792 | 1 # SliTaz package receipt. |
pascal@16792 | 2 |
pascal@16792 | 3 PACKAGE="libjson" |
pascal@16792 | 4 VERSION="7.6.1" |
pascal@16792 | 5 CATEGORY="misc" |
pascal@16792 | 6 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@16792 | 7 LICENSE="BSD" |
pascal@16792 | 8 SHORT_DESC="A super-effiecient JSON reader and writer." |
pascal@20421 | 9 WEB_SITE="https://sourceforge.net/projects/libjson/" |
pascal@16792 | 10 TARBALL="${PACKAGE}_$VERSION.zip" |
pascal@16792 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@16792 | 12 |
pascal@16792 | 13 DEPENDS="" |
pascal@16792 | 14 BUILD_DEPENDS="" |
pascal@16792 | 15 |
pascal@24411 | 16 # What is the latest version available today? |
pascal@24411 | 17 current_version() |
pascal@24411 | 18 { |
pascal@24411 | 19 wget -O - https://sourceforge.net/projects/libjson/files/ 2>/dev/null | \ |
pascal@24411 | 20 sed '/scope="row/!d;s|.*/libjson_||;s|.zip.*||;q' |
pascal@24411 | 21 } |
pascal@24411 | 22 |
pascal@16792 | 23 # Rules to configure and make the package. |
pascal@16792 | 24 compile_rules() |
pascal@16792 | 25 { |
pascal@16792 | 26 unset CXXFLAGS |
pascal@16792 | 27 mkdir Objects_static Objects_shared _internal/Source/Dependencies |
pascal@16792 | 28 mkdir -p $DESTDIR/usr/lib |
pascal@16792 | 29 sed -i 's|^in[a-z]*_path *= |&$(DESTDIR)|' makefile |
pascal@16793 | 30 make SHARED=1 all && |
pascal@16792 | 31 make DESTDIR=$DESTDIR install |
pascal@16793 | 32 make DESTDIR=$DESTDIR SHARED=1 install |
pascal@16792 | 33 } |
pascal@16792 | 34 |
pascal@16792 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16792 | 36 genpkg_rules() |
pascal@16792 | 37 { |
pascal@16793 | 38 mkdir -p $fs/usr/lib |
pascal@16793 | 39 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@16792 | 40 } |