updated on Sat Jan 14 00:11:12 UTC 2012
[aur-mirror.git] / custom-session-git / PKGBUILD
blob3b1f8e89ef318329b959bf4df5aba56e3cd2a078
1 # Maintainer: Alex Charron <undeterminant@gmail.com>
2 pkgname=custom-session-git
3 pkgver=20120101
4 pkgrel=1
5 pkgdesc="Tools for managing a custom user session."
6 arch=('any')
7 url="https://github.com/Undeterminant/custom-session"
8 license=('unknown')
9 depends=('python' 'consolekit')
10 makedepends=('git')
11 optdepends=('xorg-server: for the default session wrapper')
12 backup=('etc/custom-session-wrapper')
14 _gitroot="https://github.com/Undeterminant/custom-session.git"
15 _gitname="custom-session"
17 build() {
18   cd "$srcdir"
19   msg "Connecting to GIT server...."
21   if [[ -d "$_gitname" ]]; then
22     cd "$_gitname" && git pull origin
23     msg "The local files are updated."
24   else
25     git clone "$_gitroot" "$_gitname"
26   fi
28   msg "GIT checkout done or server timeout"
29   msg "Starting build..."
31   rm -rf "$srcdir/$_gitname-build"
32   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
33   cd "$srcdir/$_gitname-build"
36 package() {
37   cd "$srcdir/$_gitname-build"
38   make DESTDIR="$pkgdir/" install
41 # vim:set ts=2 sw=2 et: