wok-4.x annotate librsvg/receipt @ rev 7770
Add post_install and post_remove functions to librsvg receipt. This is to update loaders.cache file when its installed.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Dec 22 21:13:25 2010 +0000 (2010-12-22) |
parents | 43e11f0a6527 |
children | 10eefd7db2df |
rev | line source |
---|---|
erjo@3554 | 1 # SliTaz package receipt. |
erjo@3554 | 2 |
erjo@3554 | 3 PACKAGE="librsvg" |
slaxemulator@7320 | 4 VERSION="2.32.1" |
slaxemulator@6677 | 5 CATEGORY="x-window" |
erjo@3554 | 6 SHORT_DESC="SVG Rendering Library" |
erjo@3554 | 7 MAINTAINER="erjo@slitaz.org" |
pascal@5003 | 8 DEPENDS="cairo freetype libxml2 pango fontconfig libcroco libgsf xcb-util \ |
slaxemulator@6677 | 9 libgio atk gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite xorg-libXext \ |
pascal@5003 | 10 xorg-libXdamage" |
slaxemulator@6296 | 11 BUILD_DEPENDS="$DEPENDS pkg-config cairo-dev freetype-dev libxml2-dev pango-dev \ |
slaxemulator@6677 | 12 fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev gtk+-dev perl expat-dev" |
erjo@3554 | 13 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
erjo@3554 | 14 WEB_SITE="http://librsvg.sourceforge.net/" |
slaxemulator@7320 | 15 WGET_URL="http://ftp.gnome.org/pub/GNOME/sources/$PACKAGE/${VERSION%.*}/$TARBALL" |
erjo@3554 | 16 |
erjo@3554 | 17 # Rules to configure and make the package. |
erjo@3554 | 18 compile_rules() |
erjo@3554 | 19 { |
erjo@3554 | 20 cd $src |
erjo@3554 | 21 ./configure \ |
erjo@3554 | 22 --prefix=/usr \ |
erjo@3554 | 23 --infodir=/usr/share/info \ |
erjo@3554 | 24 --mandir=/usr/share/man \ |
slaxemulator@6677 | 25 --disable-static \ |
erjo@3554 | 26 $CONFIGURE_ARGS && |
erjo@3554 | 27 make && make DESTDIR=$PWD/_pkg install |
erjo@3554 | 28 } |
erjo@3554 | 29 |
erjo@3554 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
erjo@3554 | 31 genpkg_rules() |
erjo@3554 | 32 { |
pankso@4161 | 33 mkdir -p $fs/usr/lib |
erjo@3554 | 34 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
erjo@3554 | 35 cp -a $_pkg/usr/lib/gtk-2.0 $fs/usr/lib |
slaxemulator@6677 | 36 cp -a $_pkg/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib |
pankso@4161 | 37 |
erjo@3554 | 38 # remove *.*a files |
erjo@3554 | 39 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \; |
slaxemulator@6678 | 40 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \; |
erjo@3554 | 41 } |
erjo@3554 | 42 |
slaxemulator@7770 | 43 # Pre and post install commands for Tazpkg. |
slaxemulator@7770 | 44 post_install() |
slaxemulator@7770 | 45 { |
slaxemulator@7770 | 46 echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..." |
slaxemulator@7770 | 47 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache |
slaxemulator@7770 | 48 } |
slaxemulator@7770 | 49 |
slaxemulator@7770 | 50 post_remove() |
slaxemulator@7770 | 51 { |
slaxemulator@7770 | 52 echo "Updating /usr/lib/gdk-pixbuf/2.10.0/loaders.cache file..." |
slaxemulator@7770 | 53 chroot $1/ /usr/bin/gdk-pixbuf-query-loaders --update-cache |
slaxemulator@7770 | 54 } |