wok-6.x annotate 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 |
rev | line source |
---|---|
pankso@255 | 1 # SliTaz package receipt. |
pankso@255 | 2 |
pankso@255 | 3 PACKAGE="pcmanfm" |
pankso@4424 | 4 VERSION="0.5.2" |
pankso@255 | 5 CATEGORY="system-tools" |
pankso@255 | 6 SHORT_DESC="Light and easy to use file manager." |
pankso@255 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@12544 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12544 | 9 WEB_SITE="http://pcmanfm.sourceforge.net/" |
pankso@12544 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@12544 | 11 |
pankso@12481 | 12 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \ |
pankso@4424 | 13 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \ |
pankso@4424 | 14 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \ |
pankso@4424 | 15 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \ |
claudinei@11744 | 16 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \ |
mojo@11717 | 17 hicolor-icon-theme" |
pankso@3600 | 18 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \ |
pascal@11944 | 19 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \ |
pankso@12544 | 20 xcb-util" |
pankso@255 | 21 |
pankso@255 | 22 # Rules to configure and make the package. |
pankso@255 | 23 compile_rules() |
pankso@255 | 24 { |
pankso@12544 | 25 # Binutils 2.22 break many packages build without LDFLAGS set correctly. |
pankso@12544 | 26 export LDFLAGS="-Wl,--copy-dt-needed-entries -lXt" |
pankso@12544 | 27 |
pankso@255 | 28 cd $src |
slaxemulator@9700 | 29 for i in $stuff/*.patch |
erjo@3584 | 30 do |
erjo@3584 | 31 if [ -f done.$(basename $i) ]; then |
pankso@3600 | 32 continue |
pankso@3600 | 33 else |
gokhlayeh@8615 | 34 patch -p0 < $i && touch done.$(basename $i) || return 1 |
erjo@3584 | 35 fi |
erjo@3584 | 36 done |
pankso@3600 | 37 |
slaxemulator@9700 | 38 cp $stuff/fr.po $src/po |
pankso@3600 | 39 |
pankso@255 | 40 ./configure \ |
erjo@1851 | 41 --enable-hal \ |
erjo@1851 | 42 $CONFIGURE_ARGS && |
pankso@12544 | 43 make && make install |
pankso@255 | 44 } |
pankso@255 | 45 |
pankso@255 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@255 | 47 genpkg_rules() |
pankso@255 | 48 { |
pascal@11622 | 49 mkdir -p $fs/usr/share/applications |
pankso@12544 | 50 cp -a $install/usr/bin $fs/usr |
pankso@12544 | 51 cp -a $install/usr/share/mime $fs/usr/share |
pankso@12544 | 52 cp -a $install/usr/share/pcmanfm $fs/usr/share |
pankso@671 | 53 rm -rf $fs/usr/share/pcmanfm/icons |
pankso@255 | 54 } |
erjo@3584 | 55 |
erjo@3584 | 56 post_install() |
erjo@3584 | 57 { |
erjo@3584 | 58 # update mime-cache |
erjo@3584 | 59 echo "Updating mime-types database" |
pascal@12196 | 60 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
erjo@3584 | 61 } |