blob: ff98dd4c644aab2e19c161cee35c350f152aae39 (
plain)
1 # Maintainer: Simone Rota, sip at varlock dot com
2 # Packager: Erlend Bergsås Mikkelsen, howl at online dot no
3 # Description: a small filer/desktop application based on gtk
4 # URL: http://rox.sourceforge.net
5 # Depends on: gtk, shared-mime-info
6
7 name=rox
8 version=2.4.1
9 release=1
10 source=(http://dl.sourceforge.net/sourceforge/rox/$name-$version.tgz)
11
12 build () {
13 cd $name-$version/ROX-Filer
14 ./AppRun --compile \
15 --with-platform="" \
16 --sysconfdir=/usr/ROX/Choices
17
18 rm -rf src Messages Help Action.png Action-it.png build
19
20 cd ..
21 mkdir -p $PKG/usr/{man/man1,bin,ROX/Apps,ROX/Choices}
22 rm -f ROX-Filer/ROX-Filer.dbg
23 cp -r ROX-Filer $PKG/usr/ROX/Apps
24 cp *.1 $PKG/usr/man/man1
25
26
27 cat << "EOF" > $PKG/usr/ROX/Apps/ROX-Filer/AppRun
28 #!/bin/sh
29
30 APP_DIR=`dirname $0`
31 APP_DIR=`cd "$APP_DIR";pwd`
32
33 exec "$APP_DIR/ROX-Filer" "$@"
34 EOF
35
36 cat << "EOF" > $PKG/usr/ROX/Choices/rox.conf
37 #!/bin/sh
38
39 CHOICESPATH="$HOME/.rox:/usr/ROX/Choices:$CHOICESPATH"
40 APP_DIR="/usr/ROX/Apps"
41 EOF
42
43 cat << "EOF" > $PKG/usr/bin/rox
44 #!/bin/sh
45 if [[ -f /usr/ROX/Choices/rox.conf ]]; then
46 source /usr/ROX/Choices/rox.conf
47 fi;
48 if [[ -d "$APP_DIR/ROX-Filer" ]]; then
49 APP_DIR="$APP_DIR/ROX-Filer";
50 fi;
51 export APP_DIR CHOICESPATH
52 /usr/ROX/Apps/ROX-Filer/ROX-Filer "$@"
53 EOF
54
55 chmod a+x $PKG/usr/bin/rox
56 }
|