updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / wolman-git / PKGBUILD
blob542bf2aba77d3505c836d0370150be689c2642f5
1 # Contributor: Jakub Luzny <limoto94@gmail.com>
2 pkgname=wolman-git
3 pkgver=20080826
4 pkgrel=1
5 pkgdesc='Qt4-based Wake-on-LAN manager'
6 arch=(i686 x86_64)
7 url='http://www.dolezel.info/projects/wolman'
8 license=('GPL')
9 depends=('qt>=4.3.0' 'libpcap' 'libnet' 'iproute')
10 makedepends=('git')
11 provides=('wolman')
12 conflicts=('wolman' 'wolman-svn')
13 replaces=('wolman-svn')
14 source=()
15 md5sums=()
17 _gitroot="git://dolezel.info/wolman.git"
18 _gitname="wolman"
20 build() {
21   cd "$srcdir"
22   msg "Connecting to GIT server...."
24   if [ -d "$srcdir/$_gitname" ] ; then
25     cd "$_gitname" && git pull origin
26     msg "The local files are updated."
27   else
28     git clone "$_gitroot"
29   fi
31   msg "GIT checkout done or server timeout"
32   msg "Starting make..."
34   rm -r "$srcdir/$_gitname-build"
35   cp -r "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36   cd "$srcdir/$_gitname-build"
38   qmake
39   make || return 1
40   install -Dm 775 wolman "$pkgdir/usr/bin/wolman"
43 #category: network
44 # vim:set ts=2 sw=2 et: