wok-next view librsvg/receipt @ rev 20137

mariadb: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Oct 31 21:42:04 2017 +0100 (2017-10-31)
parents 8de239b8173f
children 0e7893ac206d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="librsvg"
4 VERSION="2.40.16"
5 CATEGORY="graphics"
6 SHORT_DESC="Rendering SVG"
7 MAINTAINER="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.gnome.org/Projects/LibRsvg"
10 HOST_ARCH="i486 arm"
12 TARBALL="$PACKAGE-$VERSION.tar.xz"
13 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION%.*}/$TARBALL"
15 BUILD_DEPENDS="glib-dev gdk-pixbuf-dev libxml2-dev pango-dev libcroco-dev \
16 gtk-doc gobject-introspection-dev vala gtk+3-dev"
17 SPLIT="rsvg-convert rsvg-view librsvg-dev"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 ./configure \
23 --enable-vala \
24 $CONFIGURE_ARGS &&
25 make && make install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 case $PACKAGE in
32 librsvg)
33 copy *.so*
34 CAT="graphics|library"
35 DEPENDS="bzlib cairo fontconfig freetype gdk-pixbuf glib libcroco \
36 libffi libharfbuzz liblzma libpng16 libxml2 pango pcre \
37 util-linux-blkid util-linux-mount util-linux-uuid xorg-libX11 \
38 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXrender xorg-libxcb \
39 xorg-pixman zlib"
40 ;;
41 rsvg-convert)
42 copy rsvg-convert
43 CAT="graphics|converter"
44 ;;
45 rsvg-view)
46 copy rsvg-view*
47 CAT="graphics|viewer"
48 DEPENDS="librsvg atk gtk+3"
49 ;;
50 librsvg-dev)
51 copy @dev
52 DEPENDS="librsvg rsvg-convert rsvg-view \
53 bzip2-dev cairo-dev fontconfig-dev freetype-dev gdk-pixbuf-dev \
54 glib-dev harfbuzz-dev libcroco-dev libffi-dev libpng16-dev \
55 libxml2-dev pango-dev pcre-dev util-linux-blkid-dev \
56 util-linux-mount-dev util-linux-uuid-dev xorg-libX11-dev \
57 xorg-libXau-dev xorg-libXdmcp-dev xorg-libXext-dev \
58 xorg-libXrender-dev xorg-libxcb-dev xorg-pixman-dev xz-dev zlib-dev"
59 ;;
60 esac
61 }
63 # Pre and post install commands for Tazpkg.
64 post_install_librsvg() {
65 [ -n "$cookmode" ] && return 0
66 [ -z "$quiet" ] && echo -en "\nUpdating gdk pixbuf loaders cache file..."
67 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
68 status
69 }