opt/rox/Pkgfile

57 lines
1.3 KiB
Plaintext
Raw Normal View History

2009-09-21 15:13:44 +02:00
# Maintainer: Lucas Hazel, lucas at die dot net dot au
2009-12-07 12:54:28 +01:00
# Packager: Erlend Bergsas Mikkelsen, howl at online dot no
2006-02-23 16:26:10 +01:00
# Description: a small filer/desktop application based on gtk
# URL: http://rox.sourceforge.net
# Depends on: libglade, shared-mime-info
2006-02-23 16:26:10 +01:00
name=rox
2009-12-12 01:39:28 +01:00
version=2.10
2006-02-23 16:26:10 +01: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 16:26:10 +01:00
build () {
2006-08-19 18:39:01 +02:00
cd $name-filer-$version/ROX-Filer
2006-02-23 16:26:10 +01: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
}