wok annotate pcmanfm/receipt @ rev 3584

pcmanfm: add tazpkg handler.
pcmanfm/stuff/archiver-tazpkg-support.patch HG: changed
pcmanfm/stuff/icons/Tango/32x32/mimetypes/gnome-mime-application-x-tazpkg.png
pcmanfm/stuff/icons/Tango/32x32/mimetypes/package-x-tazpkg.png HG:
changed pcmanfm/stuff/mime/packages/tazpkg.xml
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Sat Jun 27 00:24:13 2009 +0200 (2009-06-27)
parents 9b20db26bb2f
children 32255d6b635f
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
pankso@255 30 ./configure \
pankso@255 31 --prefix=/usr \
pankso@255 32 --mandir=/usr/share/man \
erjo@1851 33 --enable-hal \
erjo@1851 34 $CONFIGURE_ARGS &&
erjo@1851 35 make &&
pankso@255 36 make DESTDIR=$PWD/_pkg install
pankso@255 37 }
pankso@255 38
pankso@255 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@255 40 genpkg_rules()
pankso@255 41 {
pankso@255 42 mkdir -p $fs/usr/share
pankso@255 43 cp -a $_pkg/usr/bin $fs/usr
pankso@255 44 cp -a $_pkg/usr/share/mime $fs/usr/share
pankso@255 45 cp -a $_pkg/usr/share/pcmanfm $fs/usr/share
pankso@671 46 rm -rf $fs/usr/share/pcmanfm/icons
erjo@3584 47
erjo@3584 48 cp -a stuff/icons $fs/usr/share
erjo@3584 49 cp -a stuff/mime $fs/usr/share
pankso@255 50 }
erjo@3584 51
erjo@3584 52
erjo@3584 53 post_install()
erjo@3584 54 {
erjo@3584 55 # update mime-cache
erjo@3584 56 echo "Updating mime-types database"
erjo@3584 57 update-mime-database $1/usr/share/mime
erjo@3584 58 }