wok annotate librsvg/receipt @ rev 18730

Quote root dir in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 20 15:13:45 2015 +0100 (2015-12-20)
parents 88af587617c4
children 6863f40dbeaa
rev   line source
erjo@3554 1 # SliTaz package receipt.
erjo@3554 2
erjo@3554 3 PACKAGE="librsvg"
slaxemulator@11409 4 VERSION="2.34.2"
slaxemulator@6677 5 CATEGORY="x-window"
erjo@3554 6 SHORT_DESC="SVG Rendering Library"
erjo@3554 7 MAINTAINER="erjo@slitaz.org"
pascal@14716 8 LICENSE="GPL2"
pascal@14716 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@14716 10 WEB_SITE="http://librsvg.sourceforge.net/"
pascal@14716 11 WGET_URL="$GNOME_MIRROR/$PACKAGE/${VERSION:0:4}/$TARBALL"
pankso@16222 12 HOST_ARCH="i486 arm"
pankso@16222 13
pankso@16222 14 DEPENDS="cairo freetype libxml2 pango fontconfig libcroco xcb-util libgsf \
pankso@16222 15 libgio gdk-pixbuf xorg-libXinerama xorg-libXcursor xorg-libXcomposite \
pankso@16222 16 xorg-libXext xorg-libXdamage"
pankso@16222 17 BUILD_DEPENDS="libffi-dev cairo-dev freetype-dev libxml2-dev pango-dev \
pankso@16222 18 fontconfig-dev gdk-pixbuf-dev libcroco-dev glib-dev libpng-dev expat-dev"
pascal@14716 19
pankso@16222 20 # Handle cross compilation
pankso@16222 21 case "$ARCH" in
pankso@16222 22 i?86) BUILD_DEPENDS="gtk+-dev perl libgsf" ;;
pankso@16222 23 esac
erjo@3554 24
erjo@3554 25 # Rules to configure and make the package.
erjo@3554 26 compile_rules()
erjo@3554 27 {
erjo@3554 28 ./configure \
slaxemulator@6677 29 --disable-static \
pankso@16222 30 $CONFIGURE_ARGS LIBCROCO_CFLAGS="-I/cross/$ARCH/sysroot/usr/include" &&
slaxemulator@10213 31 make && make install
erjo@3554 32 }
erjo@3554 33
erjo@3554 34 # Rules to gen a SliTaz package suitable for Tazpkg.
erjo@3554 35 genpkg_rules()
erjo@3554 36 {
pankso@4161 37 mkdir -p $fs/usr/lib
pascal@14716 38 cp -a $install/usr/lib/*.so* $fs/usr/lib
pankso@16222 39 [ -d "$install/usr/lib/gtk-2.0" ] && \
pankso@16222 40 cp -a $install/usr/lib/gtk-2.0 $fs/usr/lib
pascal@14716 41 cp -a $install/usr/lib/gdk-pixbuf-2.0 $fs/usr/lib
pankso@4161 42
erjo@3554 43 # remove *.*a files
pankso@16222 44 [ -d "$install/usr/lib/gtk-2.0" ] && \
pankso@16222 45 find $fs/usr/lib/gtk-2.0 -name "*.*a" -exec rm -f {} \;
slaxemulator@6678 46 find $fs/usr/lib/gdk-pixbuf-2.0 -name "*.*a" -exec rm -f {} \;
erjo@3554 47 }
erjo@3554 48
slaxemulator@7770 49 # Pre and post install commands for Tazpkg.
slaxemulator@7770 50 post_install()
slaxemulator@7770 51 {
gokhlayeh@11958 52 echo -n "Updating gdk pixbuf loaders cache file..."
pascal@18730 53 chroot "$1/" /usr/bin/gdk-pixbuf-query-loaders --update-cache
gokhlayeh@11958 54 status
slaxemulator@7770 55 }