wok-current annotate 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
rev   line source
mallory@3710 1 # SliTaz package receipt.
mallory@3710 2
mallory@3710 3 PACKAGE="json-glib"
shann@25634 4 VERSION="1.6.6"
mallory@3710 5 CATEGORY="development"
mallory@3710 6 SHORT_DESC="JSON-GLib is a library providing serialization and deserialization support for the JavaScript Object Notation"
mallory@3710 7 MAINTAINER="mallory@sweetpeople.org"
pascal@14996 8 LICENSE="LGPL2.1"
shann@25634 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
gokhlayeh@11478 10 WEB_SITE="http://live.gnome.org/JsonGlib"
pascal@24112 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
gokhlayeh@11478 12 TAGS="javascript"
gokhlayeh@11478 13
slaxemulator@7553 14 DEPENDS="libgio glib"
shann@25634 15 BUILD_DEPENDS="pkg-config gobject-introspection-dev \
shann@25634 16 libgio-dev glib-dev meson"
mallory@3710 17
pascal@24111 18 current_version()
pascal@24111 19 {
pascal@24111 20 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24111 21 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24111 22 }
pascal@24111 23
mallory@3710 24 # Rules to configure and make the package.
mallory@3710 25 compile_rules()
mallory@3710 26 {
shann@25634 27 meson build \
shann@25634 28 --prefix=/usr \
shann@25634 29 --libdir=lib \
shann@25634 30 --bindir=/usr/bin \
shann@25634 31 --sbindir=/usr/sbin \
shann@25634 32 --buildtype=release &&
shann@25634 33 ninja -C build &&
shann@25634 34 ninja -C build install
mallory@3710 35 }
mallory@3710 36
mallory@3710 37 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@3710 38 genpkg_rules()
mallory@3710 39 {
mallory@3710 40 mkdir -p $fs/usr/lib
pascal@14996 41 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@14996 42 cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib
mallory@3710 43 }