2 # Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
3 # Maintainer: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
6 _dstname=qtstalker-qt4-branch
10 pkgdesc="Commodity/Stock Charting and Technical Analysis Platform"
11 arch=('i686' 'x86_64')
12 url=http://qtstalker.sourceforge.net/
14 depends=('db4.8>=4.8.0' 'qt>=4.5.0' 'ta-lib-svn>=1542')
15 conflicts=('qtstalker<=0.36' 'qtstalker-cvs')
16 provides=(${_realname})
18 source=(http://anu.homelinux.net/pub/Linux/ports/distfiles/${_dstname}.tar.bz2)
21 msg "Patching source..."
22 cd "$srcdir/${_dstname}"
23 msg2 "Applying patch 'debian/01_qtstalker.cfg.patch'"
24 patch -sp1 < debian/patches/01_qtstalker.cfg.patch
25 sed -e 's|^# INCLUDEPATH.*|INCLUDEPATH += /usr/include/db4.8|' -i qtstalker.cfg
27 msg "Running ./configure..."
28 ./configure || return $?
30 msg "Starting make all install..."
32 make INSTALL_ROOT=$pkgdir install || return $?
34 msg "Making it nice..."
35 find ./misc/CUS_examples -type f |sed 's/^\.\///' |while read file; do
36 install -D -m 0644 $file $pkgdir/usr/share/doc/${_realname}/html/$file
38 find $pkgdir/usr/share/${_realname}/indicator -type f |sed "s|/${_realname}/indicator|/doc/${_realname}/html/misc/CUS_examples|" |while read file; do
41 install -D -m 0664 debian/${_realname}.1 $pkgdir/usr/share/man/man1/$pkgname.1
42 install -D -m 0664 debian/${_realname}.desktop $pkgdir/usr/share/applications/$pkgname.desktop
43 install -D -m 0664 pics/${_realname}.xpm $pkgdir/usr/share/pixmaps/${_realname}.xpm
46 # vim:set ts=4 sw=4 et:
47 md5sums=('411a0625f7dcc39bbfb2b166a838d03c')