wok-next view libfm/receipt @ rev 13069

Up: tiff to 4.0.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jun 25 07:39:28 2012 +0000 (2012-06-25)
parents 0a6b5118575a
children 42fe21299957
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-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 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
49 }