updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / vala_cmake-git / PKGBUILD
blobd34b9e5e11a80a60f246e75c63f1c6b045712827
1 # Maintainer: agvares <agvares13@gmail.com>
3 pkgname=vala_cmake-git
4 pkgver=20100922
5 pkgrel=1
6 pkgdesc="Vala support modules for CMake"
7 arch=('i686' 'x86_64')
8 url="http://github.com/jakobwesthoff/Vala_CMake"
9 license=('GPL')
10 depends=('cmake>=2.8.0')
11 makedepends=('git')
13 _gitroot="http://github.com/jakobwesthoff/Vala_CMake.git"
14 _gitname="Vala_CMake"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to server...."
19   if [ -d $_gitname/.git ]; then
20     cd $_gitname
21     git pull
22   else
23     git clone $_gitroot
24     cd $_gitname
25   fi
27   msg "GIT checkout done or server timeout"
28   msg "Install CMake modules..."
29   
30   cd "$srcdir/${_gitname}"
32   install -D -m644 vala/FindVala.cmake $pkgdir/usr/share/cmake-2.8/Modules/FindVala.cmake
33   install -D -m644 vala/ParseArguments.cmake $pkgdir/usr/share/cmake-2.8/Modules/ParseArguments.cmake
34   install -D -m644 vala/ValaPrecompile.cmake $pkgdir/usr/share/cmake-2.8/Modules/ValaPrecompile.cmake
35   install -D -m644 vala/ValaVersion.cmake $pkgdir/usr/share/cmake-2.8/Modules/ValaVersion.cmake