SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libsoup"

# SliTaz package receipt.

PACKAGE="libsoup"
VERSION="2.74.2"
CATEGORY="x-window"
SHORT_DESC="GNOME Soup Library."
MAINTAINER="pankso@slitaz.org"
LICENSE="LGPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://live.gnome.org/LibSoup/"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
HOST_ARCH="i486 arm x86_64"

DEPENDS="glib glibc-base libffi libgio libxml2 pcre \
libpsl zlib"
BUILD_DEPENDS="glib-networking meson libgio-dev \
libxml2-dev libgcrypt-dev libtasn1-dev gnutls-dev zlib-dev \
libgnome-keyring-dev sqlite-dev dbus-dev libpsl-dev"

# Handle cross compilation.
case "$ARCH" in
    i?86|x86_64) BUILD_DEPENDS="$BUILD_DEPENDS gobject-introspection-dev" ;;
esac

current_version()
{
    wget -O - $GNOME_MIRROR/$PACKAGE/$(wget -O - $GNOME_MIRROR/$PACKAGE 2>/dev/null | \
    sed '/href="[0-9]/!d;s|.*href="||;s|/" .*||' | sort -Vr | sed q) 2>/dev/null | \
    sed "/href=\"$PACKAGE-[0-9]/!d;s|.*$PACKAGE-||;s|.[a-z].*||" | 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

    # move to libsoup-gnome package
    rm -f $fs/usr/lib/libsoup-gnome*
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)