updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / maliit-plugins-git / PKGBUILD
blob0f0f360af34a265e20f3711b2b46436b4c6e664d
1 # Contributor: Jon Nordby <jononor@gmail.com>
2 # Maintainer: Jon Nordby <jononor@gmail.com>
4 _pkgname=maliit-plugins
5 pkgname=$_pkgname-git
6 pkgver=20110905
7 pkgrel=1
8 pkgdesc="Maliit Input Methods - Plugins"
9 arch=('x86_64' 'i686')
10 url="http://maliit.org"
11 license=('LGPL')
12 depends=('qt' 'maliit-framework')
13 conflicts=($_pkgname)
14 provides=($_pkgname)
15 source=()
16 md5sums=()
18 _gitroot="git://gitorious.org/maliit/maliit-plugins.git"
19 _gitname="$_pkgname"
21 build() {
22   cd "$srcdir"
23   msg "Connecting to GIT server...."
25   if [ -d $_gitname ] ; then
26     cd $_gitname && git pull origin
27     msg "The local files are updated."
28   else
29     git clone $_gitroot $_gitname
30   fi
32   msg "GIT checkout done or server timeout"
33   msg "Starting make..."
35   rm -rf "$srcdir/$_gitname-build"
36   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
37   cd "$srcdir/$_gitname-build"
39   # BUILD
40   qmake -r . CONFIG+=notests
41   make
44 package() {
45   cd "$srcdir/$_gitname-build"
47   make install INSTALL_ROOT="$pkgdir/"
48