wok annotate libfm/receipt @ rev 11476

librsvg: fix BUILD-DEPENDS
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Dec 17 21:48:58 2011 +0100 (2011-12-17)
parents
children cbf8c28eb1b6
rev   line source
pascal@11205 1 # SliTaz package receipt.
pascal@11205 2
pascal@11205 3 PACKAGE="libfm"
pascal@11205 4 VERSION="0.1.14"
pascal@11205 5 CATEGORY="system-tools"
pascal@11205 6 SHORT_DESC="File manager library from LXDE."
pascal@11205 7 MAINTAINER="pankso@slitaz.org"
pascal@11205 8 DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
pascal@11205 9 zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache"
pascal@11205 10 BUILD_DEPENDS="$DEPENDS gtk+-dev gamin-dev shared-mime-info intltool \
pascal@11205 11 hal-dev dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev \
pascal@11205 12 xcb-util-dev menu-cache-dev expat-dev"
pascal@11205 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@11205 14 WEB_SITE="http://pcmanfm.sourceforge.net"
pascal@11205 15 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
pascal@11205 16
pascal@11205 17 # Rules to configure and make the package.
pascal@11205 18 compile_rules()
pascal@11205 19 {
pascal@11205 20 cd $src
pascal@11205 21 grep -rl gio/gdesktopappinfo.h . | xargs sed -i \
pascal@11205 22 's|.*gio/gdesktopappinfo.h.*|#ifdef G_DISABLE_DEPRECATED\n#undef G_DISABLE_DEPRECATED\n&\n#define G_DISABLE_DEPRECATED\n#else\n&\n#endif|'
pascal@11205 23 chmod +x install-sh
pascal@11205 24 ./configure \
pascal@11205 25 --prefix=/usr \
pascal@11205 26 --mandir=/usr/share/man \
pascal@11205 27 --sysconfdir=/etc \
pascal@11205 28 $CONFIGURE_ARGS &&
pascal@11205 29 make &&
pascal@11205 30 make DESTDIR=$PWD/_pkg install
pascal@11205 31 }
pascal@11205 32
pascal@11205 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@11205 34 genpkg_rules()
pascal@11205 35 {
pascal@11205 36 mkdir -p $fs/usr/lib/gio/modules
pascal@11205 37 cp -a $_pkg/etc $fs
pascal@11205 38 cp -a $_pkg/usr/bin $fs/usr
pascal@11205 39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@11205 40 cp -a $_pkg/usr/lib/gio/modules/*.so $fs/usr/lib/gio/modules
pascal@11205 41 }
pascal@11205 42
pascal@11205 43 post_install()
pascal@11205 44 {
pascal@11205 45 # update mime-cache
pascal@11205 46 echo "Updating mime-types database"
pascal@11205 47 update-mime-database $1/usr/share/mime
pascal@11205 48 }