updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / twisted-qt4-git / PKGBUILD
blobc827ed707bf7e57ac1a7a4afbc1e9a5584bbac38
1 # Contributor: raubkopierer <mail[dot]sensenmann[at]googlemail[dot]com>
2 pkgname=twisted-qt4-git
3 pkgver=20090822
4 pkgrel=1
5 pkgdesc="qt4reactor for the python twisted module"
6 url="http://www.tarbox.org/qtreactor/index.html"
7 arch=('i686' 'x86_64')
8 license=('MIT')
9 depends=('twisted' 'pyqt')
10 makedepends=('git')
12 _gitroot="git://github.com/ghtdak/qtreactor.git"
13 _gitname="qtreactor"
15 build() {
16   cd ${srcdir}
17   msg "Connecting to github.com GIT server...."
19   if [ -d ${srcdir}/$_gitname ] ; then
20   cd $_gitname && git pull origin
21   msg "The local files are updated."
22   else
23   git clone $_gitroot
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   mkdir ${pkgdir}/usr
30   mkdir ${pkgdir}/usr/lib
31   mkdir ${pkgdir}/usr/lib/python2.6
32   mkdir ${pkgdir}/usr/lib/python2.6/site-packages
33   cp ${srcdir}/${_gitname}/twisted ${pkgdir}/usr/lib/python2.6/site-packages -r
34   cp ${srcdir}/${_gitname}/qt4reactor.py ${pkgdir}/usr/lib/python2.6/site-packages
35