updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / wolfenqt-git / PKGBUILD
blobec78c3eb04f5f6326d88928a1e65693d4f092831
2 #Contributor: Erico Nunes <nunes.erico[at]gmail>
3 #Maintainer: Erico Nunes <nunes.erico[at]gmail>
5 pkgname=wolfenqt-git
6 pkgver=20110212
7 pkgrel=1
8 pkgdesc="Demo with Qt widgets embedded in a 3D scene."
9 arch=('any')
10 url="http://qt.gitorious.org/qt-labs/wolfenqt"
11 license=('BSD')
12 depends=('qt' 'libgl' 'phonon')
13 makedepends=('git')
15 source=('entity.patch'
16         'mazescene.patch')
18 md5sums=('bb6cb57f4da200eee982d8abf6b6df96'
19         '6ff8c2fd137eec048bfe165814f8b3f7')
21 _gitname="wolfenqt"
22 _gitroot="git://gitorious.org/qt-labs/wolfenqt.git"
24 build() {
25         msg "Connecting to GIT server..."
26         if [[ -d $srcdir/$pkgname-$pkgver ]]; then
27                 cd $srcdir/$pkgname-$pkgver && git pull origin || return 1
28         else
29                 git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
30                 cd $srcdir/$pkgname-$pkgver
31         fi
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
43         qmake || return 1
44         make || return 1
47 package () {
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"