wok annotate pcmanfm-legacy/receipt @ rev 15281

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