updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libntlm-git / PKGBUILD
blob2938f2459770a14211b95be085da10a39a9c6601
1 # Contributor: Mychael Janes <mychael.janes@gmail.com>
2 pkgname=libntlm-git
3 pkgver=20081120
4 pkgrel=1
5 pkgdesc="a library that implement Microsoft's NTLM authentication"
6 arch=(i686)
7 source=()
8 md5sums=()
9 url="http://josefsson.org/libntlm/"
10 license=('LGPL')
12 _gitroot="git://git.savannah.nongnu.org/libntlm.git"
13 _gitname="libntlm"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [ -d $_gitname ] ; then
20     cd $_gitname && git-pull origin
21     msg "The local files are updated."
22   else
23     git clone $_gitroot
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -r "$srcdir/$_gitname-build"
30   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   # a hack to get a Makefile built
34   make
36   ./configure --prefix=/usr
37   make || return 1
38   make DESTDIR="$pkgdir/" install
39