updated on Mon Jan 16 04:00:32 UTC 2012
[aur-mirror.git] / meegotouch-inputmethodframework-git / PKGBUILD
blob418f02bbaf7b718dc7fa843fd44e2523dd886979
1 # Contributor: Jon Nordby <jononor@gmail.com>
2 # Maintainer: Jon Nordby <jononor@gmail.com>
4 _pkgname=meegotouch-inputmethodframework
5 pkgname=$_pkgname-git
6 pkgver=20110528
7 pkgrel=1
8 pkgdesc="MeegoTouch Inputmethod Framework"
9 arch=('x86_64' 'i686')
10 url="http://wiki.meego.com/Maliit"
11 license=('LGPL')
12 makedepends=('git')
13 depends=('qt' 'libmeegotouch')
14 provides=($_pkgname)
15 conflicts=($_pkgname)
16 install=meegotouch-inputmethodframework.install
17 source=()
18 md5sums=()
20 _gitroot="git://gitorious.org/meegotouch/meegotouch-inputmethodframework.git"
21 _gitname="$_pkgname"
23 build() {
24   cd "$srcdir"
25   msg "Connecting to GIT server...."
27   if [ -d $_gitname ] ; then
28     cd $_gitname && git pull origin
29     msg "The local files are updated."
30   else
31     git clone $_gitroot $_gitname
32   fi
34   msg "GIT checkout done or server timeout"
35   msg "Starting make..."
37   rm -rf "$srcdir/$_gitname-build"
38   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
39   cd "$srcdir/$_gitname-build"
41   # BUILD
42   # Note: libmeegotouch dep can be removed using CONFIG+=nomeegotouch
43   qmake CONFIG+=notests CONFIG+=noduicontrolpanel
44   make
47 package() {
48   cd "$srcdir/$_gitname-build"
50   make install INSTALL_ROOT="$pkgdir/"
51