updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / aliwe-git / PKGBUILD
blobb597514785806b363e221afb73ce55f0c9b23d4d
2 pkgname=aliwe-git
3 pkgver=20111126
4 pkgrel=1
5 pkgdesc="A WPA passphrase generator for AGPF Alice Routers"
6 arch=('i686' 'x86_64')
7 url="https://github.com/M0Rf30/aliwe"
8 license=('GPL3')
9 depends=(openssl)
10 makedepends=('git' 'make')
12 _gitroot="git://github.com/M0Rf30/aliwe.git"
13 _gitname="aliwe"
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 $_gitname
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting make..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone -l "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build"
33   make || return 1
34   make DESTDIR=$pkgdir install
36   rm -rf "$srcdir/$_gitname-build"
37