1 # Contributor: Erufu / Sébastien Lacroix <erufu.sennin@gmail.com>
6 pkgdesc="A lightweight and highly configurable tiling window manager for X"
8 url="http://www.wmfs.info/"
10 depends=('libxft' 'imlib2' 'libxinerama' 'libxrandr')
13 conflicts=('wmfs' 'wmfs-git')
15 _gitroot="git://git.wmfs.info/wmfs.git"
20 msg "Connecting to GIT server..."
22 if [ -d ${_gitname} ]; then
23 cd ${_gitname} && git pull origin
24 msg "The local files are updated."
26 git clone ${_gitroot} ${_gitname}
28 msg "GIT checkout done or server timeout."
30 rm -rf "$srcdir/$_gitname-build"
31 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
32 cd "$srcdir/$_gitname-build"
34 msg "Downloading patch and files"
35 wget "http://git.wmfs.info/wmfs.git/tree/COPYING"
36 wget "http://git.wmfs.info/wmfs.git/tree/wmfs.desktop?h=wmfs1"
37 mv wmfs.desktop?h=wmfs1 wmfs.desktop
39 ./configure --prefix /usr \
40 --xdg-config-dir /etc/xdg \
41 --man-prefix /usr/share/man
46 cd ${srcdir}/${_gitname}-build
48 make DESTDIR=${pkgdir} install
49 install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
50 msg "WARNING ! Please copy the default config file '/etc/xdg/wmfs/wmfsrc' in '~/.config/wmfs/', or wmfs2 won't start !"