# Description: tiling window manager initialy based on a dwm code rewriting
# URL:         http://awesome.naquadah.org/
# Maintainer:  Bartlomiej Palmowski, maks1k at wp dot pl
# Depends on:  libconfuse cairo xorg-libxinerama pango imlib2 xorg-libxrandr

name=awesome
version=2.3.4
release=1
source=(http://awesome.naquadah.org/download/$name-$version.tar.bz2
    http://maxiq.ovh.org/CRUX/$name-mans-$version.tar.bz2)

build() {
    cd $name-$version
    autoreconf --force --install --verbose
    ./configure \
        --prefix=/usr \
        --mandir=/usr/man \
        --docdir=/usr/share/$name
    make AWESOME_CFLAGS="$CFLAGS"
    make DESTDIR=$PKG install
    rm -f $PKG/usr/share/$name/{README,STYLE,UPGRADE}
    cp $SRC/$name{,-{client,menu,message}}.1 $PKG/usr/man/man1
    cp $SRC/${name}rc.5 $PKG/usr/man/man5
}
