wok-4.x view librsvg/receipt @ rev 11861
up weechat 0.3.7
author | Samuel Trassare <samuel_trassare@yahoo.com> |
---|---|
date | Mon Feb 27 11:00:09 2012 -0800 (2012-02-27) |
parents | 402afe50ac7a |
children | 37d744940e6c |
line source
1 # SliTaz package receipt.
3 PACKAGE="librsvg"
4 VERSION="2.34.2"
5 CATEGORY="x-window"
6 SHORT_DESC="SVG Rendering Library"
7 MAINTAINER="erjo@slitaz.org"
8 DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \
9 libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \
10 xorg-libXdamage"
11 BUILD_DEPENDS="$DEPENDS libffi-dev pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \
12 fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://librsvg.sourceforge.net/"
15 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure \
22 --disable-static \
23 $CONFIGURE_ARGS &&
24 make && make install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr/lib
31 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
32 cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib
33 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
35 # remove *.*a files
36 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
37 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
38 }
40 # Pre and post install commands for Tazpkg.
41 post_install()
42 {
43 echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
44 if [ ! -d $1/etc/gtk-2.0 ]; then
45 mkdir -p $1/etc/gtk-2.0
46 fi
47 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
48 }
50 post_remove()
51 {
52 echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..."
53 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders > $1/etc/gtk-2.0/gdk-pixbuf.loaders
54 }