You are not logged in.

#1 2005-06-27 04:51:37

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

[NEW] jGnash - Personal Finance Manager

jGnash is a Java-based personal finance manager very similar to GnuCash.  Being a packaging virgin, I would like to jump in and start making my own packages, but after reading the Arch Java Packaging Guidelines document, have become a little more scared of the process for this particular application...although those fears may be unwarranted.

I couldn't find any reference to this package anywhere relating to Arch (including the repositories, the AUR, and the forums), thus I'm not sure if anyone else would really be interested in it at all.

I have just tried it out on my Windows machine and liked it better than Grisbi and some of the other financial applications out there for Linux.  It's a double-entry accounting system, and is set up to handle many of the same exact things as GnuCash with a very similar interface.  It can even import GnuCash's XML data...only it doesn't have all of the associated dependancy nightmares that have made GnuCash famous.

Anybody willing to give me a hand with tackling this one?

EDIT: Forgot to give a link to jGnash, some screenshots, and its SourceForge Page.

Offline

#2 2005-07-03 19:34:08

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: [NEW] jGnash - Personal Finance Manager

Well, after a bit of reading, I went ahead and made a PKGBUILD for it...any improvements/suggestions?

# Contributer: Aaron Schaefer <aaron@elasticdog.com>
pkgname=jgnash
pkgver=1.9.2
pkgrel=1
pkgdesc="A double-entry based personal finance manager, written in Java"
url="http://jgnash.sourceforge.net"
license=""
depends=('j2re')
source=(http://dl.sourceforge.net/sourceforge/jgnash/$pkgname-$pkgver.jar)
md5sums=('252a0197a430fa27776b02a96599f035')

build() {
    mkdir -p $startdir/pkg/usr/bin
    cd $startdir/src
    install -D -m644 $pkgname-$pkgver.jar 
        $startdir/pkg/usr/share/java/jgnash/$pkgname-$pkgver.jar

    # Create the binary
    cat > $startdir/pkg/usr/bin/jgnash << "EOF"
#!/bin/sh

CP=/usr/share/java/jgnash/jgnash-1.9.2.jar

exec /opt/java/jre/bin/java -cp $CLASSPATH:$CP -jar /usr/share/java/jgnash/jgnash-1.9.2.jar  
EOF
    chmod 775 $startdir/pkg/usr/bin/jgnash
}

EDIT -- Updated the PKGBUILD based on Penguin's suggestions and AUR status

Offline

#3 2005-07-04 02:17:32

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [NEW] jGnash - Personal Finance Manager

elasticdog wrote:

...any improvements/suggestions?

Personally, I would like to see the use of install to set permissions in /usr/share/java/jgnash/blabla instead of just a straight copy command and, use straight numbers instead of a+x. Something like:

build() {
    mkdir -p $startdir/pkg/usr/bin
    cd $startdir/src
    install -D -m644 $pkgname-$pkgver.jar 
        $startdir/pkg/usr/share/java/jgnash/$pkgname-$pkgver.jar

    # Create the binary
    cat > $startdir/pkg/usr/bin/jgnash << "EOF"
#!/bin/sh

CP=/usr/share/java/jgnash/jgnash-1.9.2.jar

exec /opt/java/jre/bin/java -cp $CLASSPATH:$CP -jar /usr/share/java/jgnash/jgnash-1.9.2.jar  
EOF
    chmod 755 $startdir/pkg/usr/bin/jgnash
}

But, I guess its just a matter of taste, everything seemed to install right.
Anyways, It works good here, nice job!

Offline

#4 2005-07-04 06:11:41

elasticdog
Member
From: Washington, USA
Registered: 2005-05-02
Posts: 995
Website

Re: [NEW] jGnash - Personal Finance Manager

Thanks for the advice!  That makes sense...from what I gather from the man pages, install is very similar to cp, only it gives you better control over file overwriting options and also allows you to set permissions all in one step.  Is that right? 

If anyone is interested, jGnash has now been submitted correctly into the AUR...

Offline

#5 2005-07-04 07:45:55

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: [NEW] jGnash - Personal Finance Manager

elasticdog wrote:

...from what I gather from the man pages, install is very similar to cp, only it gives you better control over file overwriting options and also allows you to set permissions all in one step.  Is that right?...

you're damn skippy it is! :mrgreen:
Its nice because you can make directories as needed, set permissions, and copy all in one step. Its the common way to do PKGBUILDS if you take a look at some of the official ones...

Offline

#6 2012-02-20 21:30:39

valuequest
Member
Registered: 2011-03-16
Posts: 4

Re: [NEW] jGnash - Personal Finance Manager

The PKGBUILD file in the jgnash-2.51 tarball currently in the AUR contains a comment that

# there are problems while running jgnash with openjdk, upstream mentions to use sun's jre

Does anyone know what issues gnash-2.51 may have with jre7-openjdk?

Side note:
The jGnash home page currently notes that

jGnash has been tested and works well with the OpenJDK Java Platform as of the 2.6 releases

Last edited by valuequest (2012-02-21 01:21:51)

Offline

#7 2012-07-23 01:20:08

valuequest
Member
Registered: 2011-03-16
Posts: 4

Re: [NEW] jGnash - Personal Finance Manager

Does anyone have any version of jGnash working with jre7-openjdk? If so can you describe how you installed it?

Offline

#8 2012-07-23 01:58:56

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,517
Website

Re: [NEW] jGnash - Personal Finance Manager

value .... This is a seven year old irrelevant thread.  The package went from the AUR, into community, back to the aur, changed aur maintainer, and was then abandoned, all since this thread started.

Start a new thread to address problems in the current PKGBUILD.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2012-07-23 02:05:15

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [NEW] jGnash - Personal Finance Manager

valuequest, please read the Forum Etiquette, notably the section on necrobumping

https://wiki.archlinux.org/index.php/Fo … Bumping.27


Closing


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB