updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lawnmower-git / PKGBUILD
blobf30118144e3f82d600af90ca3d8ace40c337141a
1 # Maintainer: Ankit Shankar <ankitshankar+aur at gmail dot com>
2 pkgname=lawnmower-git
3 pkgver=20110127
4 pkgrel=1
5 pkgdesc="Automated login tool for Georgia Tech Local Area Wireless Network
6 (LAWN)."
7 arch=('x86_64' 'i686')
8 url="https://github.com/thelastnode/LAWNMower"
9 license=('BSD')
10 groups=()
11 depends=('qt>=4.6')
12 makedepends=('git' 'qt>=4.6')
13 provides=()
14 conflicts=()
15 replaces=()
16 backup=()
17 options=()
18 install=
19 source=('lawnmower.desktop')
20 noextract=()
21 md5sums=('2e0638a095aea90922a29b645cc3e019')
23 _gitroot="git://github.com/thelastnode/LAWNMower.git"
24 _gitname="lawnmower"
26 build() {
27   cd "$srcdir"
28   msg "Connecting to GIT server...."
30   if [ -d $_gitname ] ; then
31     cd $_gitname && git pull origin
32     msg "The local files are updated."
33   else
34     git clone $_gitroot $_gitname
35   fi
37   msg "GIT checkout done or server timeout"
38   msg "Starting make..."
40   rm -rf "$srcdir/$_gitname-build"
41   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
42   cd "$srcdir/$_gitname-build"
44   qmake
45   make
48 package() {
49   cd "$srcdir/$_gitname-build"
50   install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
51   install -D -m755 LAWNMower "${pkgdir}/usr/bin/LAWNMower"
52   cd "$startdir"
53   install -D -m644 lawnmower.desktop "${pkgdir}/usr/share/applications/lawnmower.desktop"