2006-04-13 21:43:04 +00:00
|
|
|
|
# Maintainer: Simone Rota, sip at crux dot nu
|
2006-02-23 15:26:10 +00:00
|
|
|
|
# Packager: Erlend Bergs<67>s Mikkelsen, howl at online dot no
|
|
|
|
|
# Description: a small filer/desktop application based on gtk
|
|
|
|
|
# URL: http://rox.sourceforge.net
|
2008-01-10 08:59:13 +00:00
|
|
|
|
# Depends on: libglade, shared-mime-info
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
name=rox
|
2008-05-18 18:13:45 +00:00
|
|
|
|
version=2.8
|
2006-02-23 15:26:10 +00:00
|
|
|
|
release=1
|
2007-07-11 13:20:38 +02:00
|
|
|
|
source=(http://dl.sourceforge.net/sourceforge/rox/$name-filer-$version.tar.bz2)
|
2006-02-23 15:26:10 +00:00
|
|
|
|
|
|
|
|
|
build () {
|
2006-08-19 16:39:01 +00:00
|
|
|
|
cd $name-filer-$version/ROX-Filer
|
2006-02-23 15:26:10 +00:00
|
|
|
|
./AppRun --compile \
|
|
|
|
|
--with-platform="" \
|
|
|
|
|
--sysconfdir=/usr/ROX/Choices
|
|
|
|
|
|
|
|
|
|
rm -rf src Messages Help Action.png Action-it.png build
|
|
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
mkdir -p $PKG/usr/{man/man1,bin,ROX/Apps,ROX/Choices}
|
|
|
|
|
rm -f ROX-Filer/ROX-Filer.dbg
|
|
|
|
|
cp -r ROX-Filer $PKG/usr/ROX/Apps
|
|
|
|
|
cp *.1 $PKG/usr/man/man1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
cat << "EOF" > $PKG/usr/ROX/Apps/ROX-Filer/AppRun
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
APP_DIR=`dirname $0`
|
|
|
|
|
APP_DIR=`cd "$APP_DIR";pwd`
|
|
|
|
|
|
|
|
|
|
exec "$APP_DIR/ROX-Filer" "$@"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cat << "EOF" > $PKG/usr/ROX/Choices/rox.conf
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
CHOICESPATH="$HOME/.rox:/usr/ROX/Choices:$CHOICESPATH"
|
|
|
|
|
APP_DIR="/usr/ROX/Apps"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
cat << "EOF" > $PKG/usr/bin/rox
|
|
|
|
|
#!/bin/sh
|
|
|
|
|
if [[ -f /usr/ROX/Choices/rox.conf ]]; then
|
|
|
|
|
source /usr/ROX/Choices/rox.conf
|
|
|
|
|
fi;
|
|
|
|
|
if [[ -d "$APP_DIR/ROX-Filer" ]]; then
|
|
|
|
|
APP_DIR="$APP_DIR/ROX-Filer";
|
|
|
|
|
fi;
|
|
|
|
|
export APP_DIR CHOICESPATH
|
|
|
|
|
/usr/ROX/Apps/ROX-Filer/ROX-Filer "$@"
|
|
|
|
|
EOF
|
|
|
|
|
|
|
|
|
|
chmod a+x $PKG/usr/bin/rox
|
|
|
|
|
}
|