wok view libjson/receipt @ rev 24934

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