wok-next view libfm/receipt @ rev 11896
Up: libfm (0.1.17) - Needed by last pcmafm2
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 29 14:48:46 2012 +0100 (2012-02-29) |
parents | 0f920dfd9022 |
children | 7283539d1809 |
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 DEPENDS="glibc-base glib libgio util-linux-ng-uuid libxcb xcb-util expat \
9 zlib fontconfig freetype gtk+ atk cairo pango pixman menu-cache"
10 BUILD_DEPENDS="$DEPENDS gtk+-dev gamin-dev shared-mime-info intltool \
11 hal-dev dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev \
12 xcb-util-dev menu-cache-dev expat-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.gz"
14 WEB_SITE="http://pcmanfm.sourceforge.net"
15 WGET_URL="$SF_MIRROR/pcmanfm/files/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 grep -rl gio/gdesktopappinfo.h . | xargs sed -i \
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|'
23 chmod +x install-sh
24 ./configure \
25 --prefix=/usr \
26 --mandir=/usr/share/man \
27 --sysconfdir=/etc \
28 $CONFIGURE_ARGS &&
29 make &&
30 make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/lib/gio/modules
37 cp -a $_pkg/etc $fs
38 cp -a $_pkg/usr/bin $fs/usr
39 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
40 cp -a $_pkg/usr/lib/gio/modules/*.so $fs/usr/lib/gio/modules
41 }
43 post_install()
44 {
45 # update mime-cache
46 echo "Updating mime-types database"
47 update-mime-database $1/usr/share/mime
48 }