summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f771c283de797a90a8ce8a9f5ebca1a4d7658883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Sabart Otto - Seberm <seberm[at]gmail[dot].com

pkgname=wifigw
pkgver=20120909
pkgrel=1
pkgdesc="Login to VUT wifi network"
url="https://github.com/seberm/wifigw"
arch=('any')
license=('GPLv3')
install=
source=()
depends=('bash' 'curl')
provides=''
makedepends=('git')

_gitname="$pkgname"
_gitroot="git://github.com/seberm/${pkgname}.git"


build() {
  cd $srcdir
  msg "Connecting to GIT (${_gitroot}) ..."

  if [ -d "$_gitname" ]; then
    cd "$_gitname" && git pull origin
    msg "The local files of ${_gitname} were updated."
  else
    git clone "$_gitroot" "$_gitname"
  fi
  
  msg "GIT checkout done or server timeout"

  install -D -m755 "$srcdir/$_gitname/${pkgname}.sh" "$pkgdir/usr/bin/${pkgname}"
}