wok-current view spacefm/receipt @ rev 13630
spacefm: remove all call to bash in source files (work nicely with busybox shell)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Nov 14 21:49:55 2012 +0100 (2012-11-14) |
parents | bee018da8da6 |
children | a24ea2bd11ad |
line source
1 # SliTaz package receipt.
3 PACKAGE="spacefm"
4 VERSION="0.8.2"
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 # We dont want bash hardcoded
24 sed -i s'|/bin/bash|/bin/sh|'g src/*.c
25 sed -i s'|/bin/bash|/bin/sh|'g src/*.h
26 sed -i s'|/bin/bash|/bin/sh|'g src/*/*.c
27 sed -i s'|/bin/bash|/bin/sh|'g src/*/*.c
28 ./configure \
29 --with-preferable-sudo="/usr/bin/subox" \
30 --disable-pixmaps \
31 $CONFIGURE_ARGS &&
32 make && make install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/share $fs/etc/spacefm
39 cp -a $install/usr/bin $fs/usr
40 for d in applications mime icons spacefm
41 do
42 cp -a $install/usr/share/$d $fs/usr/share
43 done
44 cp $stuff/spacefm.conf $fs/etc/spacefm
45 cp -a $stuff/xdg $fs/etc
46 # Faenza --> SliTaz
47 mv $fs/usr/share/icons/Faenza $fs/usr/share/icons/SliTaz
48 rm -rf $fs/usr/share/icons/hicolor/128x128
49 # /bin/bash --> /bin/sh
50 sed -i s'|/bin/bash|/bin/sh|'g $fs/usr/bin/spacefm-auth
51 }