2 # Contributor: Ameysh <trader9@gmail.com>
3 # Maintainer: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
6 _realname=${pkgname%-*}
9 pkgdesc="Commodity/Stock Charting and Technical Analysis Platform"
10 arch=('i686' 'x86_64')
11 url=http://qtstalker.sourceforge.net/
13 depends=('qt>=4.6.0' 'qwt5>=5.2.2' 'ta-lib-svn>=1542')
14 optdepends=('perl-libwww: for updation of quote/other data')
15 conflicts=('qtstalker<=0.36' 'qtstalker-qt4')
16 replaces=('qtstalker<=0.36' 'qtstalker-qt4')
17 provides=(${_realname})
20 _cvsroot=":pserver:anonymous@${_realname}.cvs.sourceforge.net:/cvsroot/${_realname}"
23 source=('PKGBUILD.local' 'QtStalkerScript.cpp.patch' 'qtstalker.desktop')
25 # Include local code, huh
26 if [ -x PKGBUILD.local ]; then
31 msg "Connecting to ${_cvsroot#*@} CVS server..."
33 if [ -d ${_cvsmod}-cvs/CVS ]; then
34 (cd ${_cvsmod}-cvs && cvs -z3 update -d)
36 cvs -z3 -d ${_cvsroot} co -d ${_cvsmod}-cvs ${_cvsmod}
38 msg "CVS checkout done or server timeout"
40 msg "Preparing builddir..."
41 rsync -av --delete --exclude 'CVS' --exclude '.cvs*' $srcdir/${_cvsmod}-cvs/ $srcdir/${_realname}-build
42 cd $srcdir/${_realname}-build || return $?
44 msg "Running ./configure..."
45 sed 's|/usr/local|/usr|' -i ${_realname}.config
46 if [ -f /etc/arch-release ]; then
47 sed 's|lqwt$|lqwt5|' -i ${_realname}.pro
48 echo "INCLUDEPATH += /usr/include/qwt5" >>${_realname}.config
50 patch -p0 -i $srcdir/QtStalkerScript.cpp.patch
51 ./configure || return $?
53 msg "Starting make all install..."
55 make INSTALL_ROOT=$pkgdir install || return $?
57 msg "Making it nice..."
58 mkdir -p $pkgdir/usr/share/applications
59 install -m 644 ../../${_realname}.desktop $pkgdir/usr/share/applications
60 mkdir -p $pkgdir/usr/share/pixmaps
61 install -m 644 pics/${_realname}.xpm $pkgdir/usr/share/pixmaps
62 rm -f $pkgdir/usr/share/doc/qtstalker/COPYING
65 # vim:set ts=4 sw=4 et:
66 md5sums=('728f6a98a8a4b3eb67e72ead618495c5'
67 '9c7cbdc73c93c3c2b33627874882b034'
68 'ba0af5c39ccefd8bb3479fbc9c5f6322')