wok-next annotate pcmanfm/receipt @ rev 3600
pcmanfm: Removed hardcoded package size
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Jun 28 22:26:44 2009 +0200 (2009-06-28) |
parents | 32255d6b635f |
children | 9d7ec81e4c94 |
rev | line source |
---|---|
pankso@255 | 1 # SliTaz package receipt. |
pankso@255 | 2 |
pankso@255 | 3 PACKAGE="pcmanfm" |
pankso@1078 | 4 VERSION="0.5" |
pankso@255 | 5 CATEGORY="system-tools" |
pankso@255 | 6 SHORT_DESC="Light and easy to use file manager." |
pankso@255 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@2522 | 8 DEPENDS="gtk+ xorg gamin startup-notification dbus dbus-glib hal xorg-libXdamage" |
pankso@3600 | 9 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \ |
pankso@3600 | 10 dbus-glib-dev dbus-dev startup-notification-dev" |
pankso@255 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@255 | 12 WEB_SITE="http://pcmanfm.sourceforge.net/" |
pankso@255 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@255 | 14 |
pankso@255 | 15 # Rules to configure and make the package. |
pankso@255 | 16 compile_rules() |
pankso@255 | 17 { |
pankso@255 | 18 cd $src |
pankso@3600 | 19 for i in ../stuff/*.patch |
erjo@3584 | 20 do |
erjo@3584 | 21 if [ -f done.$(basename $i) ]; then |
pankso@3600 | 22 continue |
pankso@3600 | 23 else |
erjo@3584 | 24 patch -p1 -i $i && touch done.$(basename $i) |
erjo@3584 | 25 fi |
erjo@3584 | 26 done |
pankso@3600 | 27 |
erjo@3585 | 28 cp ../stuff/fr.po $src/po |
pankso@3600 | 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 |
pankso@3600 | 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 } |