updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / maliit-framework-git / PKGBUILD
blob6b833623f5f3d65c45dab5334a6ac20d38d96349
1 # Contributor: Jon Nordby <jononor@gmail.com>
2 # Maintainer: Jon Nordby <jononor@gmail.com>
4 _pkgname=maliit-framework
5 pkgname=$_pkgname-git
6 pkgver=20110824
7 pkgrel=1
8 pkgdesc="Maliit Input Methods - Framework"
9 arch=('x86_64' 'i686')
10 url="http://maliit.org"
11 license=('LGPL')
12 depends=('qt')
13 install=${_pkgname}.install
14 conflicts=($_pkgname)
15 provides=($_pkgname)
16 source=()
17 md5sums=()
19 _gitroot="git://gitorious.org/maliit/maliit-framework.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   # BUILD
41   qmake -r . CONFIG+=notests
42   make
45 package() {
46   cd "$srcdir/$_gitname-build"
48   make install INSTALL_ROOT="$pkgdir/"
49