updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / obshutdown-git / PKGBUILD
blob218a022102d5b668b75459b4b3a795239918daa4
1 # Contributor: dragonn <dragonn at op dot pl>
3 pkgname=obshutdown-git
4 pkgver=20110912
5 pkgrel=1
6 pkgdesc='Openbox shutdown manager'
7 arch=('i686' 'x86_64')
8 license=('GPL')
9 depends=('gtk2' 'cairo')
10 makedepends=('git')
11 source=()
12 sha1sums=()
13 conflicts=('obshutdown')
14 url=('https://github.com/panjandrum')
15 _gitroot="https://github.com/panjandrum/obshutdown.git"
16 _gitname="obshutdown"
21 build() {
22         
24   cd "${srcdir}"
25   msg "Connecting to the GIT server...."
26   
27   if [[ -d "${srcdir}/${_gitname}" ]] ; then
28     cd "${_gitname}"
29     git pull origin
30     msg "The local files are updated."
31   else
32     git clone "${_gitroot}"
33   fi
34   
35  msg "GIT checkout done or server timeout"
36  msg "Starting build..." 
38   cd "${srcdir}/${_gitname}"
39         ./configure \
40                 --prefix=/usr 
41                 
42         make
45 package() {
46         cd "${srcdir}/${_gitname}"
47         make DESTDIR="${pkgdir}" install