updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / networkmanager-pptp-git / PKGBUILD
blob38048dde92656ebd8b460a785abc0f6b9445cb92
1 # $Id: PKGBUILD,v 1.0 2009/08/10 01:45:02 BaSh Exp $
2 # Maintainer: Kirurgs <kirurgs@one.lv>
3 # Contributor: Kirurgs <kirurgs@one.lv>
5 pkgname=networkmanager-pptp-git
6 pkgver=20090810
7 pkgrel=1
8 pkgdesc='Developement pptp plugin for networkmanager'
9 arch=('i686' 'x86_64')
10 url="http://www.gnome.org/projects/NetworkManager/"
11 license=('GPL')
12 depends=('pptpclient' 'network-manager-applet-git')
13 makedepends=('pkgconfig' 'gnome-common' 'intltool')
14 conflicts=('networkmanager-pptp')
15 source=()
17 _gitroot="git://git.gnome.org/network-manager-pptp"
18 _gitname="network-manager-pptp"
20 build() {
21   msg "Connecting to git.freedesktop.org GIT server...."
23   if [ -d ${srcdir}/$_gitname ] ; then
24     cd $_gitname && git pull origin
25     msg "The local files are updated."
26   else
27     git clone $_gitroot
28   fi
30   msg "GIT checkout done or server timeout"
31   msg "Starting make..."
33   cp -r ${srcdir}/$_gitname ${srcdir}/$_gitname-build
34   cd ${srcdir}/$_gitname-build
36   ./autogen.sh --prefix=/usr --sysconfdir=/etc || return 1
38   make -j3 || return 1
39   make -j3 DESTDIR=$pkgdir install || return 1
41   rm -rf ${srcdir}/$_gitname-build