wok-current view pcmanfm-legacy/receipt @ rev 13825

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