updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / wmfs-git / PKGBUILD
blobffa9aa61688cd39fe730f40c1bf325e50b61ef4e
1 # Maintainer: Erufu / Sébastien Lacroix <erufu.sennin@gmail.com>
2 # Maintainer: Bartek Piotrowski <barthalion@gmail.com>
3 # Contributor: AddiKT1ve <the.addikt1ve@gmail.com>
4 # Contributor: Erus <erus.iluvatar@gmail.com>
6 pkgname=wmfs-git
7 pkgver=20120117
8 pkgrel=1
9 pkgdesc="A lightweight and highly configurable tiling window manager for X"
10 arch=('i686' 'x86_64')
11 url="http://www.wmfs.info/"
12 license=('BSD')
13 depends=('libxft' 'imlib2' 'libxinerama' 'libxrandr')
14 makedepends=('git')
15 provides=('wmfs')
16 conflicts=('wmfs' 'wmfs2-git')
18 _gitroot="git://git.wmfs.info/wmfs.git"
19 _gitname="wmfs"
21 build() {
22   cd "${srcdir}"
23   msg "Connecting to GIT server..."
25   if [ -d ${_gitname} ]; then
26     cd ${_gitname} && git pull origin
27     msg "The local files are updated."
28   else
29     git clone -b wmfs1 ${_gitroot} ${_gitname}
30   fi
31   msg "GIT checkout done or server timeout."
33   rm -rf "$srcdir/$_gitname-build"
34   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
35   cd "$srcdir/$_gitname-build"
37   ./configure --prefix /usr \
38               --xdg-config-dir /etc/xdg \
39               --man-prefix /usr/share/man
40   make
43 package() {
44   cd ${srcdir}/${_gitname}-build
46   make DESTDIR=${pkgdir} install
47   install -D -m644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING