# SliTaz package receipt. PACKAGE="gobject-introspection" VERSION="1.70.0" CATEGORY="development" SHORT_DESC="Introspection system for GObject-based libraries" MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2 MIT" WEB_SITE="https://wiki.gnome.org/Projects/GObjectIntrospection" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" #HOST_ARCH="i486 arm" DEPENDS="libgio dbus" BUILD_DEPENDS="flex bison glib-dev python3-dev libgio-dev libffi-dev \ cairo-dev dbus-dev meson" # Handle cross compilation case "$ARCH" in arm*) export CFLAGS="$CFLAGS -L/cross/$ARCH/sysroot/usr/lib" export LDFLAGS="$LDFLAGS -L/cross/$ARCH/sysroot/usr/lib" export PKG_CONFIG_PATH="/cross/$ARCH/sysroot/usr/pkgconfig" BUILD_DEPENDS="glib-dev libgio-dev libffi-dev cairo-dev dbus-dev" ;; esac 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() { # Patch for issue with new meson # see https://bugs.gentoo.org/831427 patch -p1 < $stuff/gobject-introspection-1.70.0-meson-0.61.patch 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 \ $fs/usr/share cp -a $install/usr/bin $fs/usr cp -a $install/usr/lib/girepository-1.0 $fs/usr/lib cp -a $install/usr/lib/gobject-introspection $fs/usr/lib cp -a $install/usr/lib/*.so* $fs/usr/lib }