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