wok view pcmanfm/receipt @ rev 12925

gtk-vnc: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue May 29 22:52:47 2012 +0200 (2012-05-29)
parents f73ab8941355
children 473b2d729747
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmanfm"
4 VERSION="0.5.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="Light and easy to use file manager."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://pcmanfm.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
13 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
14 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
15 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
16 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \
17 hicolor-icon-theme"
18 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
19 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
20 xcb-util"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
26 export LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
28 cd $src
29 for i in $stuff/*.patch
30 do
31 if [ -f done.$(basename $i) ]; then
32 continue
33 else
34 patch -p0 < $i && touch done.$(basename $i) || return 1
35 fi
36 done
38 cp $stuff/fr.po $src/po
40 ./configure \
41 --enable-hal \
42 $CONFIGURE_ARGS &&
43 make && make install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr/share/applications $fs/etc/xdg
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/mime $fs/usr/share
53 cp -a $install/usr/share/pcmanfm $fs/usr/share
54 rm -rf $fs/usr/share/pcmanfm/icons
56 # XDG autostart desktop file (lxsession will use it automaticaly)
57 cp -a $stuff/autostart $fs/etc/xdg
58 }
60 post_install()
61 {
62 # update mime-cache
63 echo "Updating mime-types database"
64 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
65 }