wok-6.x view pcmanfm/receipt @ rev 12544
pcmanfm: Fix build with binutils 2.22 (use LDFLAGS)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Apr 26 13:38:37 2012 +0200 (2012-04-26) |
parents | 73641efed1cc |
children | 4474bd4465a3 |
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
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/share/mime $fs/usr/share
52 cp -a $install/usr/share/pcmanfm $fs/usr/share
53 rm -rf $fs/usr/share/pcmanfm/icons
54 }
56 post_install()
57 {
58 # update mime-cache
59 echo "Updating mime-types database"
60 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
61 }