# Contributor: Thomas Dziedzic < gostrc at gmail > # Maintainer: Stefan Husmann pkgname=sawfish-git pkgver=sawfish.1.11.90.6.gba51040 pkgrel=1 pkgdesc='A window manager extensible using a Lisp-based scripting language.' arch=('i686' 'x86_64') url='http://sawfish.wikia.com' license=('GPL') depends=('libsm' 'librep-git' 'rep-gtk-git' 'hicolor-icon-theme' 'libxtst' 'gtk2') makedepends=('git' 'gettext' 'emacs') optdepends=('emacs: for using sawfish.el') provides=('sawfish=1.11') conflicts=('sawfish') install=sawfish.install source=('git://github.com/SawfishWM/sawfish.git') options=('!libtool') md5sums=('SKIP') _gitname=sawfish pkgver() { cd $_gitname git describe --tags|sed 's/-/./g' } build() { cd $_gitname ./autogen.sh ./configure --prefix=/usr --with-nls make emacs -batch -q -f batch-byte-compile sawfish.el } package() { cd $_gitname make DESTDIR="$pkgdir" install install -Dm644 sawfish.el $pkgdir/usr/share/emacs/site-lisp/sawfish.el install -Dm644 sawfish.elc $pkgdir/usr/share/emacs/site-lisp/sawfish.elc install -Dm644 lisp/sawfish/wm/tile/readme.org \ $pkgdir/usr/share/doc/$pkgname/readme.tiling.org }