updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / mtconverter / PKGBUILD
blob1917935c216a56059320e7288cb5a2a2f9385aa1
1 # Maintainer: Patrick Hanckmann <hanckmann gmail com>
3 pkgname=mtconverter
4 pkgver=0.01
5 pkgrel=1
6 pkgdesc="The mtconverter convert files from the MT940 format to the OFX format so that bank transactions can be imported in the GnuCash banking software. Successfully tested with ABNAMRO and GnuCash version 2.2.6 "
7 arch=('i686' 'x86_64')
8 url="http://mtconverter.sourceforge.net/"
9 license=('GPL')
10 depends=('java-runtime')
11 source=(http://sourceforge.net/projects/mtconverter/files/mtconverter/Initial%20release/mtconverter-0.01.jar/download)
12 noextract=(download)
13 md5sums=('116055e49ea26ba458f23707e7ccd656')
15 build() {
16  mv download mtconverter-0.01.jar
17  mkdir -p $pkgdir/usr/share/java/mtconverter
18  cp mtconverter-0.01.jar $pkgdir/usr/share/java/mtconverter/ || return 1
21  mkdir -p $pkgdir/usr/bin
22  echo touch $pkgdir/usr/bin/mtconverter || return 1
23  echo '#!/bin/sh' > $pkgdir/usr/bin/mtconverter || return 1
24  echo '"$JAVA_HOME/bin/java" -jar /usr/share/java/mtconverter/mtconverter-0.01.jar' >> $pkgdir/usr/bin/mtconverter || return 1
25  chmod +x $pkgdir/usr/bin/mtconverter || return 1