wok-current view libjson-c/receipt @ rev 25672
patch tazpkg, upgrade core pkgs first
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Sun Mar 03 17:58:42 2024 +0000 (5 months ago) |
parents | ac8ca9758df1 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libjson-c"
4 VERSION="0.15-20200726"
5 CATEGORY="development"
6 SHORT_DESC="A JSON implementation in C."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://github.com/json-c/json-c"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/archive/json-c-$VERSION.tar.gz"
14 DEPENDS=""
15 BUILD_DEPENDS="automake bash libtool cmake"
17 current_version()
18 {
19 wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \
20 sed '/archive.*tar/!d;s|.*/json-c-\(.*\).tar.*|\1|;q'
21 }
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 mkdir build && cd build
28 cmake \
29 -DCMAKE_INSTALL_PREFIX=/usr \
30 -DBUILD_STATIC_LIBS=OFF \
31 -DCMAKE_BUILD_TYPE=Release \
32 -Wno-dev .. &&
33 make -j 1 &&
34 make DESTDIR=$DESTDIR install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/lib
41 cp -a $install/usr/lib/*.so* $fs/usr/lib
42 }