updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / custom-session-quit-git / PKGBUILD
blob477125bf2ae6605c9a66aeeb842237ce2bf35d06
1 # Maintainer: Alex Charron <undeterminant@gmail.com>
2 pkgname=custom-session-quit-git
3 pkgver=20120101
4 pkgrel=1
5 pkgdesc="Tools for ending a custom user session."
6 arch=('any')
7 url="https://github.com/Undeterminant/custom-session-quit"
8 license=('unknown')
9 depends=('python' 'dbus' 'upower')
10 makedepends=('git')
12 _gitroot="https://github.com/Undeterminant/custom-session-quit.git"
13 _gitname="custom-session-quit"
15 build() {
16   cd "$srcdir"
17   msg "Connecting to GIT server...."
19   if [[ -d "$_gitname" ]]; then
20     cd "$_gitname" && git pull origin
21     msg "The local files are updated."
22   else
23     git clone "$_gitroot" "$_gitname"
24   fi
26   msg "GIT checkout done or server timeout"
27   msg "Starting build..."
29   rm -rf "$srcdir/$_gitname-build"
30   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
31   cd "$srcdir/$_gitname-build/custom-session-quit"
34 package() {
35   cd "$srcdir/$_gitname-build/custom-session-quit"
36   make DESTDIR="$pkgdir/" install
39 # vim:set ts=2 sw=2 et: