updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / fvkbd-git / PKGBUILD
blob8108a593269964e176f577ff5788ea45dc3ce9e0
1 # Contributor: Feufochmar <feufochmar.gd@gmail.com>
2 pkgname=fvkbd-git
3 pkgver=20110618
4 pkgrel=1
5 pkgdesc="A free and flexible Virtual Keyboard aiming at providing fancy UI and easy to config layout"
6 arch=('i686' 'x86_64')
7 url="http://gitorious.org/fvkbd/pages/Home"
8 license=('LGPL')
9 depends=('gtk2' 'libxml2' 'libfakekey')
10 makedepends=('git')
12 _gitroot="git://gitorious.org/fvkbd/fvkbd.git"
13 _gitname="fvkbd"
15 build() {
16   cd $srcdir
17   msg "Connecting to the GIT server...."
18   
19   if [[ -d $srcdir/$_gitname ]] ; then
20     cd $_gitname
21     git pull origin
22     msg "The local files are updated."
23   else
24     git clone $_gitroot
25   fi
26   
27   msg "GIT checkout done"
28   msg "Starting make..."
29   
30   cd $srcdir/$_gitname
31   # remove the -Werror flag as there are some variables unused
32   find * -name "Makefile.am" | xargs grep -l Werror | xargs sed -i s/-Werror//g
33   #
34   ./autogen.sh
35   ./configure --prefix=/usr --sysconfdir=/etc
36   
37   make
40 package() {
41   cd $srcdir/$_gitname
42   make DESTDIR=$pkgdir install