updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / bluckywm-git / PKGBUILD
blob98d1e1b661b8b345c9f6b8a9f95abd0c9c062d09
1 # Maintainer: Army <uli armbruster who uses the google mail service>
3 pkgname=bluckywm-git
4 pkgver=20110828
5 pkgrel=1
6 pkgdesc="a very minimal and lightweight dynamic tiling window manager using xcb"
7 arch=('i686' 'x86_64')
8 url="https://github.com/moetunes/Be_Lucky_Window_Manager"
9 license=(GPL3)
10 depends=('xcb-util')
11 makedepends=('git')
13 _gitroot="https://github.com/moetunes/Be_Lucky_Window_Manager.git"
14 _gitname="bluckywm"
16 build() {
17         cd "$srcdir"
18         msg "Connecting to GIT server...."
19         
20         if [ -d ${_gitname} ] ; then
21                 cd ${_gitname} && git pull origin
22                 msg "The local files are updated."
23         else
24                 git clone ${_gitroot} ${_gitname}
25         fi
26         msg "GIT checkout done or server timeout"
27         msg "Starting make..."
29         rm -rf "${srcdir}/${_gitname}-build"
30         cp -a "${srcdir}/${_gitname}" "${srcdir}/${_gitname}-build"
31         cd "${srcdir}/${_gitname}-build"
32         
33         if test -e $startdir/config.h
34         then
35                 msg "use custom config.h"
36                 cp ${startdir}/config.h .
37         else
38                 msg "use default config.h"
39                 cp config.def.h config.h
40         fi
42         make
45 package() {
46         cd "${srcdir}/${_gitname}-build"
47         make PREFIX="${pkgdir}/usr" install