wok view rox-filer/receipt @ rev 25135

updated phpfm (0.9.8 -> 1.7.9)
author Hans-G?nter Theisgen
date Wed Jun 29 10:56:29 2022 +0100 (2022-06-29)
parents 394b8ad81c95
children b0069c845544
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 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/rox/files/rox/ 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|' | sort -Vr | sed q | xargs wget -O - 2>/dev/null | \
23 sed '/scope="row/!d;s|.*/rox/||;s|/.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lm"
30 # echo "patch 2.8"
31 # [ -f done.menu.diff ] ||
32 # patch $src/ROX-Filer/src/menu.c $stuff/menu.diff
33 # touch done.menu.diff
34 echo "compile"
35 # If missing dep compile will block on a read.
36 echo -e "\t" | $src/ROX-Filer/AppRun --compile
37 echo "mkdir"
38 mkdir $DESTDIR
39 cp $src/ROX-Filer/ROX-Filer $DESTDIR/rox-filer
40 cp $src/ROX-Filer/.DirIcon $DESTDIR/
42 mkdir $DESTDIR/Messages
43 for locale in de es fr it
44 do
45 cp -r $src/ROX-Filer/Messages/$locale $DESTDIR/Messages
46 done
48 cp -r $src/ROX-Filer/images $DESTDIR/
50 mkdir $DESTDIR/Help
51 cp $src/ROX-Filer/Help/*.html $DESTDIR/Help/
52 cp $src/ROX-Filer/style.css $DESTDIR/
54 cp $src/ROX-Filer/Options.xml $DESTDIR/
55 cp $src/ROX-Filer/Templates.ui $DESTDIR/
56 }
58 # Rules to gen a SliTaz package suitable for Tazpkg.
59 genpkg_rules()
60 {
61 mkdir -p $fs/usr/share/rox-filer
62 cp -r $install/* $fs/usr/share/rox-filer/
63 cp $install/.DirIcon $fs/usr/share/rox-filer/
65 mkdir -p $fs/usr/bin
66 cp -r $stuff/rox-filer $fs/usr/bin/
67 ICI=$(pwd)
68 cd $fs/usr/bin/
69 ln -s rox-filer rox
70 cd $ICI
72 mkdir -p $fs/usr/lib/openbox
73 cp $stuff/rox-open-folder-menu.sh $fs/usr/lib/openbox/
75 strip -s $fs/usr/share/rox-filer/rox-filer
76 }
78 # Post install commands for Tazpkg.
79 # Check /usr/share/icons/ROX
80 post_install()
81 {
82 if [ -e "$1/usr/share/icons/ROX" ]; then
83 echo ""
84 echo "/usr/share/icons/ROX exists"
85 else
86 echo ""
87 echo "/usr/share/icons/ROX doesn't exists"
88 echo -n "linking /usr/share/icons/ROX to /usr/share/icons/Tango"
89 ln -s /usr/share/icons/Tango "$1/usr/share/icons/ROX"
90 status
91 fi
92 }