updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / qtstalker / PKGBUILD
blob5c27fab2bf89c05aecbadf7d96d124d07fc4f161
1 # Contributor: Piotr Beling <qwak@stud.ics.p.lodz.pl>
3 pkgname=qtstalker
4 pkgver=0.36
5 pkgrel=1
6 pkgdesc="Stock market, commodity and technical analysis charting application"
7 depends=('qt3>=3.3' 'db>=4.1' 'ta-lib>=0.3.0')
8 url='http://qtstalker.sourceforge.net/'
9 source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz qtstalker.desktop)
10 arch=(i686 x86_64)
11 license=('gpl')
12 options=(docs)
14 build() {
15     #. /etc/profile.d/qt3.sh
16     export QTDIR=/opt/qt
17     export QT_XFT=true
18     export PATH=$QTDIR/bin:$PATH
19     export PKG_CONFIG_PATH=/opt/qt/lib/pkgconfig:$PKG_CONFIG_PATH
20                     
21     cd $startdir/src/$pkgname-$pkgver
23     #path patch:
24     grep -rl '/usr/local' * | xargs sed -i -e "s:/usr/local:/usr:g"     || return 1
25     
26     #gcc 4.3 no 'system' patch:
27     sed -i -e '36a#include <stdlib.h>\n' lib/UpgradeMessage.cpp         || return 1
28     sed -i -e '45a#include <stdlib.h>\n' src/IndicatorPage.cpp          || return 1
30     ./configure
31     make                                                || return 1
32     make install INSTALL_ROOT=$startdir/pkg             || return 1
33     
34     install -D -m 644 -o root -g root pics/qtstalker.xpm $startdir/pkg/usr/share/pixmaps/qtstalker.xpm                  || return 1
35     install -D -m 644 -o root -g root ../qtstalker.desktop $startdir/pkg/usr/share/applications/qtstalker.desktop       || return 1
38 md5sums=('599589c4e84e828bd888fce6be81dab3'
39          'ef3ab3f9d43440b10aa59515d5368cf9')