wok-current annotate pcmanfm/receipt @ rev 12624
exosip: update WGET_URL
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 29 12:18:27 2012 +0200 (2012-04-29) |
parents | f73ab8941355 |
children | 473b2d729747 |
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 { |
pankso@12561 | 49 mkdir -p $fs/usr/share/applications $fs/etc/xdg |
pankso@12561 | 50 |
pankso@12544 | 51 cp -a $install/usr/bin $fs/usr |
pankso@12544 | 52 cp -a $install/usr/share/mime $fs/usr/share |
pankso@12544 | 53 cp -a $install/usr/share/pcmanfm $fs/usr/share |
pankso@671 | 54 rm -rf $fs/usr/share/pcmanfm/icons |
pankso@12561 | 55 |
pankso@12561 | 56 # XDG autostart desktop file (lxsession will use it automaticaly) |
pankso@12561 | 57 cp -a $stuff/autostart $fs/etc/xdg |
pankso@255 | 58 } |
erjo@3584 | 59 |
erjo@3584 | 60 post_install() |
erjo@3584 | 61 { |
erjo@3584 | 62 # update mime-cache |
erjo@3584 | 63 echo "Updating mime-types database" |
pascal@12196 | 64 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime |
erjo@3584 | 65 } |