You are not logged in.
Pages: 1
Topic closed
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
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
...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
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
...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
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 jreDoes 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 releasesLast edited by valuequest (2012-02-21 01:21:51)
Offline
Does anyone have any version of jGnash working with jre7-openjdk? If so can you describe how you installed it?
Offline
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
valuequest, please read the Forum Etiquette, notably the section on necrobumping
https://wiki.archlinux.org/index.php/Fo … Bumping.27
Closing
Offline
Pages: 1
Topic closed