2 #Contributor: Erico Nunes <nunes.erico[at]gmail>
3 #Maintainer: Erico Nunes <nunes.erico[at]gmail>
8 pkgdesc="Demo with Qt widgets embedded in a 3D scene."
10 url="http://qt.gitorious.org/qt-labs/wolfenqt"
12 depends=('qt' 'libgl' 'phonon')
15 source=('entity.patch'
18 md5sums=('bb6cb57f4da200eee982d8abf6b6df96'
19 '6ff8c2fd137eec048bfe165814f8b3f7')
22 _gitroot="git://gitorious.org/qt-labs/wolfenqt.git"
25 msg "Connecting to GIT server..."
26 if [[ -d $srcdir/$pkgname-$pkgver ]]; then
27 cd $srcdir/$pkgname-$pkgver && git pull origin || return 1
29 git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
30 cd $srcdir/$pkgname-$pkgver
33 msg "GIT checkout done or server timeout"
35 echo "INCLUDEPATH += /usr/include/KDE" >> $srcdir/$pkgname-$pkgver/$_gitname.pro
36 echo "installfiles.files = $_gitname" >> $_gitname.pro
37 echo "installfiles.path = $pkgdir/usr/bin" >> $_gitname.pro
38 echo "INSTALLS += installfiles" >> $_gitname.pro
40 patch entity.cpp $srcdir/entity.patch || return 1
41 patch mazescene.cpp $srcdir/mazescene.patch || return 1
48 mkdir -p "$pkgdir/usr/bin"
49 mkdir -p "$pkgdir/usr/share/$_gitname/textures/"
51 cd "$srcdir/$pkgname-$pkgver"
52 make install || return 1
55 cp -r $srcdir/$pkgname-$pkgver/*.png "$pkgdir/usr/share/$_gitname/textures/"
56 cp -r $srcdir/$pkgname-$pkgver/soldier "$pkgdir/usr/share/$_gitname"