updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / netcfg-git / PKGBUILD
blob8518db2b6296108b3bd0296dbd3565b2cb258b42
1 # Maintainer: James Rayner <james@archlinux.org> 
3 pkgname=netcfg-git
4 pkgver=20110403
5 pkgrel=1
6 pkgdesc="Network configuration and profile scripts"
7 url="http://archlinux.org"
8 license=("BSD")
9 arch=('any')
10 backup=('etc/iftab')
11 depends=('wireless_tools' 'coreutils' 'wpa_supplicant' 'net-tools' 'dhcpcd' 'iproute2')
12 optdepends=("dialog: Required for menu based profile selector"
13             "wpa_actiond: Required for automatic wireless connection with rc.d/net-auto-wireless"
14             "ifplugd: Required for automatic wired connection with rc.d/net-auto-wired")
15 conflicts=(netcfg)
16 provides=(netcfg)
18 _gitname="netcfg"
19 _gitroot="git://projects.archlinux.org/${_gitname}.git"
21 build() {
22     cd ${srcdir}
23     msg "Connecting to ${_gitroot} GIT server...."
24     if [[ -d ${srcdir}/${_gitname} ]] ; then
25         cd ${_gitname}
26         git pull origin
27         msg "The local files are updated."
28     else
29         git clone ${_gitroot}
30     fi
31     msg "GIT checkout done"
34 package() {
35     cd ${srcdir}/${_gitname}
36     sed -i 's|/man/|/share/man/|' Makefile
37     make DESTDIR=${pkgdir} install
38     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/netcfg/LICENSE
39     ln -s /usr/bin/netcfg2 ${pkgdir}/usr/bin/netcfg 
44 # vim:set ts=4 sw=4 et: