#!/bin/bash ###################################################### # fbhelp gui lzm package for SLAX 6 # # # # Packed by Arnel A. Borja, galeon@ymail.com # # # # Package home http://freebasic.net # # # # November 28, 2010 # ###################################################### ###################################################### # NOTE: # # * This script requires the FreeBASIC manual zip # # file (daz format) in the current directory, # # automatically downloaded otherwise # # * This script requires the FBHelp source in the # # current directory, automatically downloaded # # otherwise # ###################################################### ### Set up Variables ### VERSION=0.8 SRCNAM=fbhelp-v$VERSION\b-src.zip MODNAM=fbhelp-gui-$VERSION WRKDIR=fbhelp TMPDIR=/tmp/fbhelp DAZVERSION=0.21.1 DAZSRCNAM=FB-manual-$DAZVERSION-fbhelp.zip ### Compile for SLAX ### rm -rf $TMPDIR rm -rf $WRKDIR wget -N http://nchc.dl.sourceforge.net/project/fbc/Tools/fbhelp%20v$VERSION\b/$SRCNAM unzip $SRCNAM cd $WRKDIR # Work-around for error in 0.8's source sed -e 's/next xx/next/' -i fbhelp_screen_gfx.bas make TARGET=linux GFX=1 mkdir -p $TMPDIR/usr/share/fbhelp cp fbhelp $TMPDIR/usr/share/fbhelp/fbhelp cd .. wget -N http://nchc.dl.sourceforge.net/project/fbc/Documentation/Manual%20$DAZVERSION/$DAZSRCNAM unzip $DAZSRCNAM -d $TMPDIR/usr/share/fbhelp mkdir -p $TMPDIR/usr/bin cat > $TMPDIR/usr/bin/fbhelp <