updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / meegotouch-feedbackreactionmaps-git / PKGBUILD
blob035db55a9c21f8ce2fd669022f99473e8d26bb83
1 # Contributor: Jon Nordby <jononor@gmail.com>
2 # Maintainer: Jon Nordby <jononor@gmail.com>
4 _pkgname=meegotouch-feedbackreactionmaps
5 pkgname=$_pkgname-git
6 pkgver=20110108
7 pkgrel=1
8 pkgdesc="MeegoTouch Feedback ReactionMaps"
9 arch=('x86_64' 'i686')
10 url="http://wiki.meego.com/MeeGo_Touch_Framework"
11 license=('LGPL')
12 makedepends=('git')
13 depends=('qt' 'meegotouch-feedback')
14 provides=($_pkgname)
15 conflicts=($_pkgname)
16 source=('0001-Fix-compilation-error-with-Werror.patch')
17 md5sums=('127282107cf39fdd5d451c92079e388f')
19 _gitroot="git://gitorious.org/meegotouch/meegotouch-feedbackreactionmaps.git"
20 _gitname="$_pkgname"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf "$srcdir/$_gitname-build"
37   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
38   cd "$srcdir/$_gitname-build"
40   patch -p1 < "$srcdir/0001-Fix-compilation-error-with-Werror.patch"
42   # BUILD
43   qmake
44   make
45   make install INSTALL_ROOT="$pkgdir/"
46