updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / musca-bzr / PKGBUILD
blob58b1dfd93c2ca9a1af607d9516ba7809ccd30411
1 # Contributor:  Ondrej Martinak <omartinak@gmail.com
3 pkgname=musca-bzr
4 pkgver=213
5 pkgrel=1
6 pkgdesc="A simple dynamic window manager for X, with features nicked from ratpoison and dwm"
7 url="http://aerosuidae.net/musca.html"
8 arch=('i686' 'x86_64')
9 license=('GPLv3')
10 depends=('libx11' 'dmenu')
11 makedepends=('gcc' 'gcc-libs' 'make' 'bzr')
12 conflicts=('musca')
13 provides=('musca')
14 source=()
15 md5sums=()
17 _bzrbranch=lp:musca
18 _bzrname=musca
20 build() {
21         cd ${srcdir}
23         msg "Connecting to BZR server..."
25         if [ -d ${srcdir}/${_bzrname} ] ; then
26                 cd ${_bzrname} && bzr pull ${_bzrbranch}
27                 cd ..
28                 msg "The local files are updated."
29         else
30                 bzr co ${_bzrbranch}
31         fi
33         msg "BZR checkout done or server timeout"
34         msg "Starting make..."
36         [ -d ./${_bzrname}-build ] && rm -rf ./${_bzrname}-build
37         cp -r ./${_bzrname} ./${_bzrname}-build
39         cd ./${_bzrname}-build
41         make || return 1
42         install -Dm755 musca $pkgdir/usr/bin/musca
43         install -Dm644 musca.1 $pkgdir/usr/share/man/man1/musca.1