wok-current view librsvg/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (5 weeks ago)
parents 3ad63c8fc2f9
children
line source
1 # SliTaz package receipt.
3 PACKAGE="librsvg"
4 VERSION="2.52.5"
5 CATEGORY="x-window"
6 SHORT_DESC="SVG Rendering Library"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="https://wiki.gnome.org/LibRsvg"
11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
12 HOST_ARCH="i486 arm x86_64"
14 DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib glibc-base harfbuzz \
15 libffi libgio libpng libxcb libxml2 pango pcre pixman xorg-libX11 \
16 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender zlib"
17 BUILD_DEPENDS="cairo-dev expat-dev fontconfig-dev freetype-dev gdk-pixbuf-dev
18 glib-dev libffi-dev libpng-dev libxml2-dev pango-dev"
19 # libcroco / libcroco-dev (unmaintained)
22 # Handle cross compilation
23 case "$ARCH" in
24 i?86|x86_64) BUILD_DEPENDS="gtk-doc perl libgsf \
25 gobject-introspection-dev gtk+3-dev rust-cargo" ;;
26 esac
28 current_version()
29 {
30 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
31 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
32 }
34 # Rules to configure and make the package.
35 compile_rules()
36 {
37 ./configure \
38 --disable-static \
39 LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" \
40 $CONFIGURE_ARGS &&
41 # from fix libtool:
42 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' libtool
43 make &&
44 make install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 cook_copy_files *.so*
51 }
53 # Pre and post install commands for Tazpkg.
54 post_install()
55 {
56 [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
57 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
58 status
59 }