updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / awesome-git / PKGBUILD
blob28ea0daef719851af4d0732543d335ffd73fb601
1 # Contributor: noonov <noonov@gmail.com>
2 # Contributor: wtchappell <wtchappell@gmail.com>
4 pkgname=awesome-git
5 pkgver=20111128
6 pkgrel=1
7 pkgdesc="A highly configurable, next generation framework window manager for X"
8 arch=('i686' 'x86_64')
9 url="http://awesome.naquadah.org/"
10 license=('GPL2')
11 depends=('startup-notification' 'libxdg-basedir' 'libev' 'dbus' 'lua'
12   'cairo-xcb' 'pango' 'lua-oocairo' 'lua-oopango'
13   'xcb-util'{,-image,-keysyms,-wm}'>=0.3.8')
14 makedepends=('git' 'cmake' 'asciidoc' 'xmlto' 'luadoc' 'imagemagick' 'doxygen')
15 optdepends=('rlwrap: readline support for awesome-client')
16 provides=('awesome')
17 conflicts=('awesome')
18 options=('docs')
19 source=(awesome.desktop)
21 _gitroot="git://git.naquadah.org/awesome.git"
22 _gitname="awesome"
24 build() {
25   cd ${srcdir}
27   msg "Connecting to GIT server..."
28   if [[ -d ${_gitname} ]]; then
29     (cd ${_gitname} && git pull origin)
30   else
31     git clone ${_gitroot} ${_gitname}
32   fi
33   msg "GIT checkout done or server timeout"
34   msg "Starting make..."
36   rm -rf ${_gitname}-build
37   git clone ${_gitname} ${_gitname}-build
39   cd ${srcdir}/${_gitname}-build
41   cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc
42   make
45 package() {
46   cd ${srcdir}/${_gitname}-build
48   make DESTDIR=${pkgdir} install
50   install -D -m644 ${srcdir}/awesome.desktop \
51     ${pkgdir}/usr/share/xsessions/awesome.desktop
54 md5sums=('2763cab6a20d4b0f2676329d57ed3a45')