wok view rox-filer/receipt @ rev 1988

Fix: udev rules missing in /etc/ude/rules.d
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Tue Jan 06 13:01:01 2009 +0100 (2009-01-06)
parents 10710b8535bc
children a2850bc26b12
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 DEPENDS="gtk+"
9 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev slitaz-dev-pkgs"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://roscidus.com/desktop/"
12 WGET_URL="http://downloads.sourceforge.net/rox/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 echo "patch"
18 [ -f done.menu.diff ] ||
19 patch $src/ROX-Filer/src/menu.c stuff/menu.diff
20 touch done.menu.diff
21 echo "compile"
22 $src/ROX-Filer/AppRun --compile
23 echo "mkdir"
24 mkdir $src/_pkg
25 cp $src/ROX-Filer/ROX-Filer $src/_pkg/rox-filer
26 cp $src/ROX-Filer/.DirIcon $src/_pkg/
28 mkdir $src/_pkg/Messages
29 for locale in de es fr it
30 do
31 cp -r $src/ROX-Filer/Messages/$locale $src/_pkg/Messages
32 done
34 cp -r $src/ROX-Filer/images $src/_pkg/
36 mkdir $src/_pkg/Help
37 cp $src/ROX-Filer/Help/*.html $src/_pkg/Help/
38 cp $src/ROX-Filer/style.css $src/_pkg/
40 cp $src/ROX-Filer/Options.xml $src/_pkg/
41 cp $src/ROX-Filer/Templates.glade $src/_pkg/
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share/rox-filer
48 cp -r $_pkg/* $fs/usr/share/rox-filer/
49 cp $_pkg/.DirIcon $fs/usr/share/rox-filer/
51 mkdir -p $fs/usr/bin
52 cp -r stuff/rox-filer $fs/usr/bin/
53 ICI=$(pwd)
54 cd $fs/usr/bin/
55 ln -s rox-filer rox
56 cd $ICI
58 mkdir -p $fs/usr/lib/openbox
59 cp stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
61 strip -s $fs/usr/share/rox-filer/rox-filer
62 }
64 # Post install commands for Tazpkg.
65 # Check /usr/share/icons/ROX
66 post_install()
67 {
68 if [ -e $1/usr/share/icons/ROX ]; then
69 echo ""
70 echo "/usr/share/icons/ROX exists"
71 else
72 echo ""
73 echo "/usr/share/icons/ROX doesn't exists"
74 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
75 ln -s /usr/share/icons/Tango $1/usr/share/icons/ROX
76 status
77 fi
78 }