You are not logged in.

#1 2005-03-10 18:11:34

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

[Request] Open Tax Solver

Since 'tis the season to be...not so jolly...howzabout we get a Tax app here?

http://opentaxsolver.sourceforge.net/

That's the only one I know of, really.

Offline

#2 2005-03-12 02:45:29

neotuli
Lazy Developer
From: London, UK
Registered: 2004-07-06
Posts: 1,204
Website

Re: [Request] Open Tax Solver

This should work. No garauntees of course.
I'm also (obviously) not responsible if you get audited (or anything else) because you used this.
PS: The gui is ..err...ugly.

#Contributor Simo Leone <neotuli (at) gmail (dot) com>
pkgname=opentaxsolver
pkgver=20050306
pkgnameorig=OpenTaxSolver2004
pkgrel=1
pkgdesc="For calculating Tax Form entries and tax-owed or refund-due"
url="http://sourceforge.net/projects/opentaxsolver/"
license=""
depends=('x-server')
source=("http://dl.sourceforge.net/opentaxsolver/$pkgnameorig_src_$pkgver.tar.gz" "http://dl.sourceforge.net/otk/otk_lib.zip")
md5sums=('02c370167d3f13b676bf575e7c068f90' 'a9ad1925d38d487db79bbc12a8de3dd1')

build() {
  cd $startdir/src
  mv otk_lib $pkgnameorig_src/src/GUI/
  cd $startdir/src/$pkgnameorig_src
  ./Build_taxsolve_packages_LINUX.sh
  mkdir -p $startdir/pkg/usr
  mv bin $startdir/pkg/usr
  mkdir -p $startdir/pkg/usr/share/opentaxsolver
    mv examples_and_templates $startdir/pkg/usr/share/opentaxsolver
    
  #custom starter script, it's cat'ed out of the PKGBUILD
  #for the sake of forum-post convenience
  cat > $startdir/pkg/usr/bin/opentaxsolver << EOF
  #!/bin/sh

TAXSOLVEDIR="/usr"
if  [ -z $1 ]   ||  [ ! -x ${TAXSOLVEDIR}/bin/$1 ]  ; then
    echo ""
    echo "Must pick a solver program as the argument to this program, e.g.:"
        echo "Example and Template files can be found in /usr/share/opentaxsolver"
    echo opentaxsolver  "    taxsolve_US_1040_2004            <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_US_1040_Sched_C_2004    <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_CA_540_2004             <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_MA_1_2004               <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_NC_1_2004               <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_NJ_1040_2004            <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_NY_IT201_2004           <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_OH_IT1040_2004          <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_PA_40_2004              <optional_inputfile.dat>"
    echo opentaxsolver  "    taxsolve_VA_760_2004             <optional_inputfile.dat>"
    echo ""
    exit
else
    export taxsolvecmd=${TAXSOLVEDIR}/bin/$1
fi

${TAXSOLVEDIR}/bin/ots_gui  $2
EOF
  chmod 755 $startdir/pkg/usr/bin/opentaxsolver
}
# vim: ft=sh ts=2

PPS: If you intend to do anything of use, you have to load up one of the templates from /usr/share/opentaxsolver .


The suggestion box only accepts patches.

Offline

#3 2005-03-14 19:59:29

beniro
Member
From: St. Petersburg, FL, USA
Registered: 2002-12-31
Posts: 313

Re: [Request] Open Tax Solver

Thanks so much.

Offline

Board footer

Powered by FluxBB