wok-stable annotate pcmanfm/receipt @ rev 3585

pcmanfm: french transation (thanks Taziden)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jun 27 01:17:17 2009 +0200 (2009-06-27)
parents e829f657b054
children bbc5a7a78a11
rev   line source
pankso@255 1 # SliTaz package receipt.
pankso@255 2
erjo@3584 3 PACKED_SIZE="8.0k"
erjo@3584 4 UNPACKED_SIZE="4.0k"
pankso@255 5 PACKAGE="pcmanfm"
pankso@1078 6 VERSION="0.5"
pankso@255 7 CATEGORY="system-tools"
pankso@255 8 SHORT_DESC="Light and easy to use file manager."
pankso@255 9 MAINTAINER="pankso@slitaz.org"
pascal@2522 10 DEPENDS="gtk+ xorg gamin startup-notification dbus dbus-glib hal xorg-libXdamage"
pascal@2458 11 BUILD_DEPENDS="gtk+-dev gamin-dev gamin
erjo@1851 12 shared-mime-info intltool hal-dev dbus-glib-dev dbus-dev startup-notification-dev"
pankso@255 13 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@255 14 WEB_SITE="http://pcmanfm.sourceforge.net/"
pankso@255 15 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@255 16
pankso@255 17 # Rules to configure and make the package.
pankso@255 18 compile_rules()
pankso@255 19 {
pankso@255 20 cd $src
erjo@3584 21 for i in ../stuff/*.patch
erjo@3584 22 do
erjo@3584 23 if [ -f done.$(basename $i) ]; then
erjo@3584 24 continue
erjo@3584 25 else
erjo@3584 26 patch -p1 -i $i && touch done.$(basename $i)
erjo@3584 27 fi
erjo@3584 28 done
erjo@3584 29
erjo@3585 30 cp ../stuff/fr.po $src/po
erjo@3585 31
pankso@255 32 ./configure \
pankso@255 33 --prefix=/usr \
pankso@255 34 --mandir=/usr/share/man \
erjo@1851 35 --enable-hal \
erjo@1851 36 $CONFIGURE_ARGS &&
erjo@1851 37 make &&
pankso@255 38 make DESTDIR=$PWD/_pkg install
pankso@255 39 }
pankso@255 40
pankso@255 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@255 42 genpkg_rules()
pankso@255 43 {
pankso@255 44 mkdir -p $fs/usr/share
pankso@255 45 cp -a $_pkg/usr/bin $fs/usr
pankso@255 46 cp -a $_pkg/usr/share/mime $fs/usr/share
pankso@255 47 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
pankso@671 48 rm -rf $fs/usr/share/pcmanfm/icons
erjo@3584 49
erjo@3584 50 cp -a stuff/icons $fs/usr/share
erjo@3584 51 cp -a stuff/mime $fs/usr/share
pankso@255 52 }
erjo@3584 53
erjo@3584 54
erjo@3584 55 post_install()
erjo@3584 56 {
erjo@3584 57 # update mime-cache
erjo@3584 58 echo "Updating mime-types database"
erjo@3584 59 update-mime-database $1/usr/share/mime
erjo@3584 60 }