wok view rox-filer/receipt @ rev 23769

linux:CONFIG_INPUT_ATLAS_BTNS=m
author Richard Dunbar <mojo@slitaz.org>
date Thu May 14 20:21:23 2020 -0400 (2020-05-14)
parents 19df6dffcea5
children e919c5a2742d
line source
1 # SliTaz package receipt.
3 PACKAGE="rox-filer"
4 VERSION="2.11"
5 CATEGORY="system-tools"
6 TAGS="file-manager"
7 SHORT_DESC="User friendly file manager."
8 MAINTAINER="sygne@ombres.eu"
9 LICENSE="GPL2"
10 WEB_SITE="http://rox.sourceforge.net/desktop/ROX-Filer"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/rox/$TARBALL"
15 DEPENDS="gtk+ libglade libxml2 shared-mime-info xorg-libSM xorg-libXdamage"
16 BUILD_DEPENDS="gtk+-dev libglade-dev libxml2-dev shared-mime-info-dev"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
22 # echo "patch 2.8"
23 # [ -f done.menu.diff ] ||
24 # patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
25 # touch done.menu.diff
26 echo "compile"
27 # If missing dep compile will block on a read.
28 echo -e "\t" | $src/ROX-Filer/AppRun --compile
29 echo "mkdir"
30 mkdir $DESTDIR
31 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer
32 cp $src/ROX-Filer/.DirIcon $DESTDIR/
34 mkdir $DESTDIR/Messages
35 for locale in de es fr it
36 do
37 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages
38 done
40 cp -r $src/ROX-Filer/images $DESTDIR/
42 mkdir $DESTDIR/Help
43 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/
44 cp $src/ROX-Filer/style.css $DESTDIR/
46 cp $src/ROX-Filer/Options.xml $DESTDIR/
47 cp $src/ROX-Filer/Templates.ui $DESTDIR/
48 }
50 # Rules to gen a SliTaz package suitable for Tazpkg.
51 genpkg_rules()
52 {
53 mkdir -p $fs/usr/share/rox-filer
54 cp -r $install/* $fs/usr/share/rox-filer/
55 cp $install/.DirIcon $fs/usr/share/rox-filer/
57 mkdir -p $fs/usr/bin
58 cp -r $stuff/rox-filer $fs/usr/bin/
59 ICI=$(pwd)
60 cd $fs/usr/bin/
61 ln -s rox-filer rox
62 cd $ICI
64 mkdir -p $fs/usr/lib/openbox
65 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
67 strip -s $fs/usr/share/rox-filer/rox-filer
68 }
70 # Post install commands for Tazpkg.
71 # Check /usr/share/icons/ROX
72 post_install()
73 {
74 if [ -e "$1/usr/share/icons/ROX" ]; then
75 echo ""
76 echo "/usr/share/icons/ROX exists"
77 else
78 echo ""
79 echo "/usr/share/icons/ROX doesn't exists"
80 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
81 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX"
82 status
83 fi
84 }