wok-next view librsvg/receipt @ rev 14449
Up: dwm (6.0)
author | Eric Joseph-Alexandre <erjo@slitaz.org> |
---|---|
date | Sat Apr 27 02:46:31 2013 +0200 (2013-04-27) |
parents | 053c07e0ffa5 |
children | 086841d75237 |
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 expat"
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 -n "Updating gdk pixbuf loaders cache file..."
44 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache
45 status
46 }