wok view spacefm/receipt @ rev 14751

busybox-boot: create /usr/share/boot/initrd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 16 19:48:35 2013 +0200 (2013-06-16)
parents 4ca9b276a61c
children 2b9f96603415
line source
1 # SliTaz package receipt.
3 PACKAGE="spacefm"
4 VERSION="0.8.6"
5 CATEGORY="system-tools"
6 SHORT_DESC="Light, fast and easy to use file manager."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://spacefm.sourceforge.net/"
10 WGET_URL="$SF_MIRROR/$PACKAGE/files/$TARBALL"
11 SUGGESTED="udevil"
13 DEPENDS="glibc-base glib libgio util-linux-uuid libxcb xcb-util expat \
14 gtk+ startup-notification dbus dbus-glib gdk-pixbuf udev"
15 BUILD_DEPENDS="gtk+-dev dbus-glib-dev dbus-dev startup-notification-dev \
16 libxcb-dev xcb-util-dev expat-dev gdk-pixbuf-dev intltool udev-dev \
17 coreutils-file-special"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 patch -Np1 -i $stuff/prefdlg.ui.diff
24 patch -Np1 -i $stuff/settings.h.diff
25 patch -Np1 -i $stuff/vfs-file-task.c.diff
27 # We dont want bash hardcoded
28 sed -i s'|/bin/bash|/bin/sh|'g src/*.c src/*.h src/*/*.c src/*/*.h
30 ./configure \
31 --with-preferable-sudo="/usr/bin/tazbox" \
32 --disable-pixmaps \
33 $CONFIGURE_ARGS &&
34 make && make install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share $fs/etc/spacefm
41 cp -a $install/usr/bin $fs/usr
42 for d in applications mime icons spacefm
43 do
44 cp -a $install/usr/share/$d $fs/usr/share
45 done
46 cp $stuff/spacefm.conf $fs/etc/spacefm
47 cp -a $stuff/xdg $fs/etc
48 # Faenza --> SliTaz
49 mv $fs/usr/share/icons/Faenza $fs/usr/share/icons/SliTaz
50 rm -rf $fs/usr/share/icons/hicolor/128x128
51 # /bin/bash --> /bin/sh
52 sed -i s'|/bin/bash|/bin/sh|'g $fs/usr/bin/spacefm-auth
53 }