wok view librsvg/receipt @ rev 24181
updated perl-berkeleydb (0.63 -> 0.64)
author | Hans-G?nter Theisgen |
---|---|
date | Fri Dec 31 13:39:16 2021 +0100 (2021-12-31) |
parents | 6831608a1b2a |
children | ffe3a28f2096 |
line source
1 # SliTaz package receipt.
3 PACKAGE="librsvg"
4 VERSION="2.40.16"
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"
14 DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib glibc-base harfbuzz \
15 libcroco 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 libcroco-dev libffi-dev libpng-dev libxml2-dev pango-dev"
20 # Handle cross compilation
21 case "$ARCH" in
22 i?86) BUILD_DEPENDS="gtk-doc perl libgsf libcroco-dev \
23 gobject-introspection-dev gtk+3-dev" ;;
24 esac
26 current_version()
27 {
28 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
29 sed "/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
30 }
32 # Rules to configure and make the package.
33 compile_rules()
34 {
35 ./configure \
36 --disable-static \
37 LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" \
38 $CONFIGURE_ARGS &&
39 # from fix libtool:
40 sed -i 's| -shared | -Wl,-Os,--as-needed\0|g' libtool
41 make &&
42 make install
43 }
45 # Rules to gen a SliTaz package suitable for Tazpkg.
46 genpkg_rules()
47 {
48 cook_copy_files *.so*
49 }
51 # Pre and post install commands for Tazpkg.
52 post_install()
53 {
54 [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
55 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
56 status
57 }