wok-next view librsvg/receipt @ rev 20636
Fix "can't execute '/usr/bin/update-mime-database': No such file or directory"
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 27 15:12:17 2018 +0300 (2018-04-27) |
parents | 757d032c55c7 |
children | 624ffd1bb925 |
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="erjo@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://wiki.gnome.org/Projects/LibRsvg"
10 LFS="http://www.linuxfromscratch.org/blfs/view/stable/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 gtk+3-dev rust"
17 SPLIT="rsvg-convert rsvg-view librsvg-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 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 gtk+3 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 }