wok diff pcmanfm-legacy/receipt @ rev 13349

pcmanfm 1.0 is default and old 0.5 serie is pcmanfm-legacy
author Christophe Lincoln <pankso@slitaz.org>
date Fri Sep 07 15:35:29 2012 +0200 (2012-09-07)
parents
children 2f1b673c2701
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/pcmanfm-legacy/receipt	Fri Sep 07 15:35:29 2012 +0200
     1.3 @@ -0,0 +1,65 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="pcmanfm"
     1.7 +VERSION="0.5.2"
     1.8 +CATEGORY="system-tools"
     1.9 +SHORT_DESC="Light and easy to use file manager."
    1.10 +MAINTAINER="pankso@slitaz.org"
    1.11 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.12 +WEB_SITE="http://pcmanfm.sourceforge.net/"
    1.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.14 +
    1.15 +DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
    1.16 +zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
    1.17 +startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
    1.18 +xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
    1.19 +xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \
    1.20 +hicolor-icon-theme"
    1.21 +BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
    1.22 +dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
    1.23 +xcb-util"
    1.24 +
    1.25 +# Rules to configure and make the package.
    1.26 +compile_rules()
    1.27 +{
    1.28 +	# Binutils 2.22 break many packages build without LDFLAGS set correctly.
    1.29 +	export LDFLAGS="-Wl,--copy-dt-needed-entries -lXt"
    1.30 +
    1.31 +	cd $src
    1.32 +	for i in  $stuff/*.patch
    1.33 +	do
    1.34 +		if [ -f done.$(basename $i) ]; then
    1.35 +			continue
    1.36 +		else
    1.37 +			patch -p0 < $i && touch done.$(basename $i) || return 1
    1.38 +		fi
    1.39 +	done
    1.40 +
    1.41 +	cp $stuff/fr.po $src/po
    1.42 +
    1.43 +	./configure \
    1.44 +		--enable-hal \
    1.45 +		$CONFIGURE_ARGS &&
    1.46 +	make && make install
    1.47 +}
    1.48 +
    1.49 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.50 +genpkg_rules()
    1.51 +{
    1.52 +	mkdir -p $fs/usr/share/applications $fs/etc/xdg
    1.53 +
    1.54 +	cp -a $install/usr/bin $fs/usr
    1.55 +	cp -a $install/usr/share/mime $fs/usr/share
    1.56 +	cp -a $install/usr/share/pcmanfm $fs/usr/share
    1.57 +	rm -rf $fs/usr/share/pcmanfm/icons
    1.58 +
    1.59 +	# XDG autostart desktop file (lxsession will use it automaticaly)
    1.60 +	cp -a $stuff/autostart $fs/etc/xdg
    1.61 +}
    1.62 +
    1.63 +post_install()
    1.64 +{
    1.65 +	# update mime-cache
    1.66 +	echo "Updating mime-types database"
    1.67 +	chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
    1.68 +}