updated on Wed Jan 11 00:07:16 UTC 2012
[aur-mirror.git] / qtstalker-qt4 / PKGBUILD
blob9715a4aa8051300804a1ada1a869abda755bcd57
1 # $Id:$
2 # Contributor: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
3 # Maintainer: Balwinder S "bsd" Dheeman (bdheeman AT gmail.com)
5 pkgname=qtstalker-qt4
6 _dstname=qtstalker-qt4-branch
7 _realname=qtstalker
8 pkgver=0.37.8
9 pkgrel=1
10 pkgdesc="Commodity/Stock Charting and Technical Analysis Platform"
11 arch=('i686' 'x86_64')
12 url=http://qtstalker.sourceforge.net/
13 license=('GPL')
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})
17 changelog='ChangeLog'
18 source=(http://anu.homelinux.net/pub/Linux/ports/distfiles/${_dstname}.tar.bz2)
20 build() {
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..."
31     make || return $?
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
37     done
38     find $pkgdir/usr/share/${_realname}/indicator -type f |sed "s|/${_realname}/indicator|/doc/${_realname}/html/misc/CUS_examples|" |while read file; do
39         rm $file
40     done
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')