wok-4.x view libfm/receipt @ rev 12039

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