# SliTaz package receipt. PACKAGE="json-glib" VERSION="1.6.6" CATEGORY="development" SHORT_DESC="JSON-GLib is a library providing serialization and deserialization support for the JavaScript Object Notation" MAINTAINER="mallory@sweetpeople.org" LICENSE="LGPL2.1" TARBALL="$PACKAGE-$VERSION.tar.xz" WEB_SITE="http://live.gnome.org/JsonGlib" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" TAGS="javascript" DEPENDS="libgio glib" BUILD_DEPENDS="pkg-config gobject-introspection-dev \ libgio-dev glib-dev meson" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | \ sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q } # Rules to configure and make the package. compile_rules() { meson build \ --prefix=/usr \ --libdir=lib \ --bindir=/usr/bin \ --sbindir=/usr/sbin \ --buildtype=release && ninja -C build && ninja -C build install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib }