updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / moneyguru-bin / PKGBUILD
blobf8475a410d8636b9ca91f3f8b0db31f7418dd8f2
1 # Maintainer: Tom Kuther <gimpel@sonnenkinder.org>
3 pkgname=moneyguru-bin
4 pkgver=2.4.3
5 pkgrel=1
6 pkgdesc="moneyGuru is a personal finance management application"
7 arch=(i686 x86_64)
8 url=http://www.hardcoded.net/moneyguru/
9 license=(custom:Fairware)
10 depends=(python pyqt sip)
11 makedepends=(lynx)
12 _filearch=i386
13 [ "${CARCH}" == "x86_64" ] && _filearch=amd64
15 build()
17         rm -f moneyguru*.deb
18         _url=$(lynx -dump http://www.hardcoded.net/moneyguru/ | grep -o http.*${pkgver}_${_filearch}.deb | tail -1)
19         wget ${_url}
20         bsdtar -xf $(basename ${_url}) data.tar.gz
21         bsdtar -xf data.tar.gz
22         rm data.tar.gz
23         cd usr/share/moneyguru/
24         rm -f sip.so
25         rm -rf PyQt4
26         mkdir -p "${pkgdir}"/usr/bin
27         cd "${srcdir}"/usr
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"