SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "librsvg"

# SliTaz package receipt.

PACKAGE="librsvg"
VERSION="2.52.5"
CATEGORY="x-window"
SHORT_DESC="SVG Rendering Library"
MAINTAINER="erjo@slitaz.org"
LICENSE="GPL2"
TARBALL="$PACKAGE-$VERSION.tar.xz"
WEB_SITE="https://wiki.gnome.org/LibRsvg"
WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
HOST_ARCH="i486 arm x86_64"

DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib glibc-base harfbuzz \
    libffi libgio libpng libxcb libxml2 pango pcre pixman xorg-libX11 \
    xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender zlib"
BUILD_DEPENDS="cairo-dev expat-dev fontconfig-dev freetype-dev gdk-pixbuf-dev 
    glib-dev libffi-dev libpng-dev libxml2-dev pango-dev"
# libcroco / libcroco-dev (unmaintained)


# Handle cross compilation
case "$ARCH" in
    i?86|x86_64) BUILD_DEPENDS="gtk-doc perl libgsf \
    gobject-introspection-dev gtk+3-dev rust-cargo" ;;
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()
{
    ./configure                            \
        --disable-static                    \
        LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include"    \
        $CONFIGURE_ARGS &&
    # from fix libtool:
    sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' libtool
    make &&
    make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cook_copy_files *.so*
}

# Pre and post install commands for Tazpkg.
post_install()
{
    [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
    chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
    status
}
6063 packages and 233209 files in current database (Sat Dec 21 00:00:03 2024)