wok view pcmanfm-legacy/receipt @ rev 18830
linux64-module-headers: avoid depmod during install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Jan 18 15:29:48 2016 +0100 (2016-01-18) |
parents | 5d53e8ccbc8d |
children | 0dfcb8e462b4 |
line source
1 # SliTaz package receipt.
3 PACKAGE="pcmanfm-legacy"
4 VERSION="0.5.2"
5 SOURCE="pcmanfm"
6 CATEGORY="system-tools"
7 SHORT_DESC="Light and easy to use file manager."
8 MAINTAINER="pankso@slitaz.org"
9 LICENSE="GPL2"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://pcmanfm.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL"
13 TAGS="file-manager"
15 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
16 zlib fontconfig freetype gtk+ atk cairo pango pixman libpng gamin \
17 startup-notification dbus dbus-glib hal xorg-libICE xorg-libSM xorg-libX11 \
18 xorg-libXau xorg-libXcomposite xorg-libXcursor xorg-libXdamage xorg-libXdmcp \
19 xorg-libXext xorg-libXfixes xorg-libXinerama xorg-libXrender \
20 hicolor-icon-theme"
21 BUILD_DEPENDS="gtk+-dev gamin-dev gamin shared-mime-info intltool hal-dev \
22 dbus-glib-dev dbus-dev startup-notification-dev libxcb-dev xcb-util-dev \
23 xcb-util"
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Binutils 2.22 break many packages build without LDFLAGS set correctly.
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lXt"
31 cd $src
32 for i in $stuff/*.patch
33 do
34 if [ -f done.$(basename $i) ]; then
35 continue
36 else
37 patch -p0 < $i && touch done.$(basename $i) || return 1
38 fi
39 done
41 cp $stuff/fr.po $src/po
43 ./configure \
44 --enable-hal \
45 $CONFIGURE_ARGS &&
46 make && make install
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/share/applications $fs/etc/xdg
54 cp -a $install/usr/bin $fs/usr
55 #cp -a $install/usr/share/mime $fs/usr/share
56 cp -a $install/usr/share/pcmanfm $fs/usr/share
57 rm -rf $fs/usr/share/pcmanfm/icons
59 # XDG autostart desktop file (lxsession will use it automaticaly)
60 cp -a $stuff/autostart $fs/etc/xdg
61 }
63 post_install()
64 {
65 # update mime-cache
66 echo "Updating mime-types database"
67 chroot "$1/" /usr/bin/update-mime-database /usr/share/mime
68 }