wok-current view json-glib/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (2 months ago)
parents b77195a00671
children
line source
1 # SliTaz package receipt.
3 PACKAGE="json-glib"
4 VERSION="1.6.6"
5 CATEGORY="development"
6 SHORT_DESC="JSON-GLib is a library providing serialization and deserialization support for the JavaScript Object Notation"
7 MAINTAINER="mallory@sweetpeople.org"
8 LICENSE="LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://live.gnome.org/JsonGlib"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 TAGS="javascript"
14 DEPENDS="libgio glib"
15 BUILD_DEPENDS="pkg-config gobject-introspection-dev \
16 libgio-dev glib-dev meson"
18 current_version()
19 {
20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 meson build \
28 --prefix=/usr \
29 --libdir=lib \
30 --bindir=/usr/bin \
31 --sbindir=/usr/sbin \
32 --buildtype=release &&
33 ninja -C build &&
34 ninja -C build 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 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
43 }