updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / libnss-gw-name-git / PKGBUILD
bloba5c11d0f90dc496025c83ed62c8519a11bc87df1
1 # Maintainer: Christian Hesse <mail@eworm.de>
3 pkgname=libnss-gw-name-git
4 pkgver=20111230
5 pkgrel=1
6 pkgdesc="Name Service Switch (NSS) module that resolves the name “gateway.localhost” to the IP of the current default gateway - git checkout"
7 arch=('i686' 'x86_64')
8 url="http://www.joachim-breitner.de/projects#libnss-gw-name"
9 license=('GPL')
10 makedepends=('git')
11 provides=(bnss-gw-name)
12 conflicts=(libnss-gw-name)
13 install=libnss-gw-name-git.install
15 _gitroot="git://git.nomeata.de/libnss-gw-name.git"
16 _gitname="libnss-gw-name"
18 build() {
19         cd "${srcdir}"
20         msg "Connecting to GIT server...."
22         if [ -d ${_gitname} ]; then
23                 cd ${_gitname} && git pull origin
24                 msg "The local files are updated."
25         else
26                 git clone ${_gitroot} ${_gitname}
27         fi
29         msg "GIT checkout done or server timeout"
30         msg "Starting make..."
32         rm -rf "${srcdir}/${_gitname}-build"
33         git clone "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
35         cd "${srcdir}/${_gitname}-build"
36         make
37         make DESTDIR="${pkgdir}/" install
39 md5sums=()