wok view rox-filer/receipt @ rev 15145

expect: filter wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Aug 15 12:52:35 2013 +0000 (2013-08-15)
parents f4ee6f71888c
children de49f29b101e
line source
1 # SliTaz package receipt.
3 PACKAGE="rox-filer"
4 VERSION="2.8"
5 CATEGORY="system-tools"
6 SHORT_DESC="user friendly filer."
7 MAINTAINER="sygne@ombres.eu"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://roscidus.com/desktop/"
10 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL"
11 TAGS="file-browser file-manager"
13 DEPENDS="gtk+ libglade libxml2 xorg-libXdamage shared-mime-info xorg-libSM"
14 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev shared-mime-info-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 export LDFLAGS="-Wl,--copy-dt-needed-entries -lm"
20 echo "patch"
21 [ -f done.menu.diff ] ||
22 patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
23 touch done.menu.diff
24 echo "compile"
25 # If missing dep compile will block on a read.
26 echo -e "\t" | $src/ROX-Filer/AppRun --compile
27 echo "mkdir"
28 mkdir $src/_pkg
29 cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer
30 cp $src/ROX-Filer/.DirIcon $src/_pkg/
32 mkdir $src/_pkg/Messages
33 for locale in de es fr it
34 do
35 cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages
36 done
38 cp -r $src/ROX-Filer/images $src/_pkg/
40 mkdir $src/_pkg/Help
41 cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/
42 cp $src/ROX-Filer/style.css $src/_pkg/
44 cp $src/ROX-Filer/Options.xml $src/_pkg/
45 cp $src/ROX-Filer/Templates.glade $src/_pkg/
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/share/rox-filer
52 cp -r $_pkg/* $fs/usr/share/rox-filer/
53 cp $_pkg/.DirIcon $fs/usr/share/rox-filer/
55 mkdir -p $fs/usr/bin
56 cp -r $stuff/rox-filer $fs/usr/bin/
57 ICI=$(pwd)
58 cd $fs/usr/bin/
59 ln -s rox-filer rox
60 cd $ICI
62 mkdir -p $fs/usr/lib/openbox
63 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
65 strip -s $fs/usr/share/rox-filer/rox-filer
66 }
68 # Post install commands for Tazpkg.
69 # Check /usr/share/icons/ROX
70 post_install()
71 {
72 if [ -e $1/usr/share/icons/ROX ]; then
73 echo ""
74 echo "/usr/share/icons/ROX exists"
75 else
76 echo ""
77 echo "/usr/share/icons/ROX doesn't exists"
78 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
79 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
80 status
81 fi
82 }