updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / wmfs2-git / PKGBUILD
blob273f7f3ca5d83803b532038ed8f035ff4bd87d2b
1 # Contributor: Erufu / Sébastien Lacroix <erufu.sennin@gmail.com>
3 pkgname=wmfs2-git
4 pkgver=20120125
5 pkgrel=1
6 pkgdesc="A lightweight and highly configurable tiling window manager for X"
7 arch=('i686' 'x86_64')
8 url="http://www.wmfs.info/"
9 license=('BSD')
10 depends=('libxft' 'imlib2' 'libxinerama' 'libxrandr')
11 makedepends=('git')
12 provides=('wmfs2')
13 conflicts=('wmfs' 'wmfs-git')
15 _gitroot="git://git.wmfs.info/wmfs.git"
16 _gitname="wmfs"
18 build() {
19   cd "${srcdir}"
20   msg "Connecting to GIT server..."
22   if [ -d ${_gitname} ]; then
23     cd ${_gitname} && git pull origin
24     msg "The local files are updated."
25   else
26     git clone ${_gitroot} ${_gitname}
27   fi
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
42   make
45 package() {
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 !"