wok-6.x view rox-filer/receipt @ rev 3921

linux: fix .config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Aug 18 21:42:30 2009 +0200 (2009-08-18)
parents 5406a29aafdd
children 8be66f03fbd2
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+ libglade xorg-libXdamage"
9 BUILD_DEPENDS="libglade-dev libxml2-dev gtk+-dev slitaz-dev-pkgs shared-mime-info"
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 }