updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / netcfgfx-git / PKGBUILD
blob7615c4c49c616f53ee47849efc03c106d07a4288
1 # Contributor: Tom Vincent <http://www.tlvince.com/>
3 pkgname=netcfgfx-git
4 pkgver=20101003
5 pkgrel=1
6 pkgdesc="A GUI for netcfg2, fork of netcfgGUI"
7 arch=('i686' 'x86_64' 'arm')
8 url="http://admiral0.github.com/netcfgfx/"
9 license=('GPL')
10 depends=('netcfg' 'wireless_tools' 'qt' 'sudo')
11 makedepends=('git' 'cmake')
12 install=netcfgfx.install
13 source=(netcfgfx.desktop netcfgfx.sudoers)
14 _gitroot="git://github.com/admiral0/netcfgfx"
15 _gitname="netcfgfx"
16 build() {
17   msg "Connecting to GIT server..."
18   if [[ -d $srcdir/${_gitname} ]]; then
19      cd ${srcdir}/${_gitname} && git pull origin || return 1
20   else
21     git clone $_gitroot ${srcdir}/${_gitname} || return 1
22     cd $srcdir/${_gitname}
23   fi
24   msg "GIT checkout done or server timeout"
25   msg "Starting make..."
27   mkdir build 
28   cd build
29   cmake ..
30   make
31   install -Dm755 netcfgfx ${pkgdir}/usr/bin/netcfgfx
32   install -Dm644 ${srcdir}/${_gitname}/resources/Network_Connection_Manager.png ${pkgdir}/usr/share/pixmaps/netcfgfx.png
33   install -Dm644 ${startdir}/netcfgfx.desktop ${pkgdir}/usr/share/applications/netcfgfx.desktop
34   install -Dm0440 ${startdir}/netcfgfx.sudoers ${pkgdir}/etc/sudoers.d/netcfgfx
36 md5sums=('f16cf637a54233ab9637df8190526120'
37          'e38cb5ccad77ad32ec68e9d28306bd87')