1 # Maintainer: Tom Kuther <gimpel@sonnenkinder.org>
6 pkgdesc="moneyGuru is a personal finance management application"
8 url=http://www.hardcoded.net/moneyguru/
9 license=(custom:Fairware)
10 depends=(python pyqt sip)
13 [ "${CARCH}" == "x86_64" ] && _filearch=amd64
18 _url=$(lynx -dump http://www.hardcoded.net/moneyguru/ | grep -o http.*${pkgver}_${_filearch}.deb | tail -1)
20 bsdtar -xf $(basename ${_url}) data.tar.gz
21 bsdtar -xf data.tar.gz
23 cd usr/share/moneyguru/
26 mkdir -p "${pkgdir}"/usr/bin
28 mv share "${pkgdir}"/usr/
29 sed -i 's|#!/usr/bin/env python3|#!/usr/bin/python|' "${pkgdir}"/usr/share/moneyguru/run.py
30 USRBINFILE="${pkgdir}"/usr/bin/moneyguru
31 echo "#!/bin/bash" > "$USRBINFILE"
32 echo "cd /usr/share/moneyguru" >> "$USRBINFILE"
33 echo "python run.py" >> "$USRBINFILE"
34 chmod +x "$USRBINFILE"