# Contributor: noonov <noonov@gmail.com>
# Contributor: wtchappell <wtchappell@gmail.com>
# Modified by: GUiHKX
#
# argb-revert.patch => http://pastebin.com/CrAJvPR7
#
# The patch reverts this commit: http://git.naquadah.org/?p=awesome.git;a=commit;h=f7aa4b59696e2d2e3f93c3f71fdbf1cf98e8b212
# After that commit, there was a slowness to open/maximize/move windows (at least on my computer)
# I apologize for my english and also if I did not follow the "Arch Packaging Standards"
pkgname=awesome-git
pkgver=20120512
pkgrel=1
pkgdesc="A highly configurable, next generation framework window manager for X"
arch=('i686' 'x86_64')
url="http://awesome.naquadah.org/"
license=('GPL2')
depends=('startup-notification' 'libxdg-basedir' 'libev' 'dbus' 'lua'
'cairo>=1.12.2' 'pango' 'lua-oocairo' 'lua-oopango' 'imlib2'
'xcb-util'{,-image,-keysyms,-wm}'>=0.3.8')
makedepends=('git' 'cmake' 'asciidoc' 'xmlto' 'luadoc' 'imagemagick' 'doxygen')
optdepends=('rlwrap: readline support for awesome-client')
provides=('awesome')
conflicts=('awesome')
options=('docs')
source=(awesome.desktop argb-revert.patch)
md5sums=('2763cab6a20d4b0f2676329d57ed3a45' 'f80c97914c06849a264ed96d5e71a894')
_gitroot="git://git.naquadah.org/awesome.git"
_gitname="awesome"
build() {
cd ${srcdir}
msg "Connecting to GIT server..."
if [[ -d ${_gitname} ]]; then
(cd ${_gitname} && git pull origin)
else
git clone ${_gitroot} ${_gitname}
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf ${_gitname}-build
git clone ${_gitname} ${_gitname}-build
cd ${srcdir}/${_gitname}-build
patch -R "awesome.c" < "${srcdir}/argb-revert.patch"
cmake -DCMAKE_INSTALL_PREFIX=/usr -DSYSCONFDIR=/etc
make
}
package() {
cd ${srcdir}/${_gitname}-build
make DESTDIR=${pkgdir} install
install -D -m644 ${srcdir}/awesome.desktop \
${pkgdir}/usr/share/xsessions/awesome.desktop
}