wok-next view librsvg/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents f48456621a9d
children 0f2575775b2d
line source
1 # SliTaz package receipt v2.
3 PACKAGE="librsvg"
4 VERSION="2.42.2"
5 CATEGORY="graphics"
6 SHORT_DESC="Rendering SVG"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.gnome.org/Projects/LibRsvg"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/general/librsvg.html"
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 gtk3-dev rust"
17 SPLIT="rsvg-convert rsvg-view $PACKAGE-dev"
19 compile_rules() {
20 ./configure \
21 --enable-vala \
22 --disable-static \
23 $CONFIGURE_ARGS &&
24 fix libtool &&
25 make &&
26 make install
27 }
29 genpkg_rules() {
30 case $PACKAGE in
31 librsvg)
32 copy *.so*
33 CAT="graphics|library"
34 DEPENDS="cairo fontconfig gdk-pixbuf glib libcroco libxml2 pango"
35 ;;
36 rsvg-convert)
37 copy rsvg-convert
38 CAT="graphics|converter"
39 DEPENDS="cairo glib librsvg"
40 ;;
41 rsvg-view)
42 copy rsvg-view*
43 CAT="graphics|viewer"
44 DEPENDS="cairo glib gtk3 librsvg"
45 ;;
46 librsvg-dev)
47 copy @dev
48 DEPENDS="librsvg rsvg-convert rsvg-view \
49 cairo-dev gdk-pixbuf-dev glib-dev"
50 ;;
51 esac
52 }
54 post_install_librsvg() {
55 [ -n "$cookmode" ] && return 0
56 action 'Updating gdk pixbuf loaders cache file...'
57 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
58 status
59 }