# SliTaz package receipt. PACKAGE="glib-networking" VERSION="2.70.1" CATEGORY="x-window" SHORT_DESC="TLS support for glib." MAINTAINER="pankso@slitaz.org" LICENSE="LGPL2" WEB_SITE="https://www.gtk.org/" TARBALL="$PACKAGE-$VERSION.tar.xz" WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL" DEPENDS="glib libgio libgnutls libunistring" BUILD_DEPENDS="glib-dev gnutls-dev libgio-dev libgnutls libunistring-dev meson" HOST_ARCH="i486 arm" current_version() { wget -O - $(dirname $WGET_URL) 2>/dev/null | sed '/LATEST/!d;s|.*IS-||;s|<.*||' } # Handle cross compilation. case "$ARCH" in i?86) BUILD_DEPENDS="$BUILD_DEPENDS intltool automake autoconf" ;; esac # 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/gio/modules cp -a $install/usr/lib/gio/modules/*.so* $fs/usr/lib/gio/modules }