1 # Maintainer: Christian Neukirchen <chneukirchen@gmail.com>
5 pkgdesc="OpenBSD fork of calmwm, a clean and lightweight window manager"
7 url="http://www.openbsd.org/cgi-bin/man.cgi?query=cwm&sektion=1"
9 depends=(libxft libxrandr libxinerama)
10 makedepends=(git pkg-config)
11 replaces=(cwm cwm-cvs)
12 conflicts=(cwm cwm-cvs)
14 md5sums=('42530ce5a23fc5f9088d891e325d99bd')
16 _gitroot="git://github.com/chneukirchen/cwm.git"
22 msg "Connecting to GIT server...."
24 if [ -d $_gitname ] ; then
25 cd $_gitname && git fetch origin
26 msg "The local files are updated."
28 git clone --mirror $_gitroot $_gitname
31 msg "GIT checkout done or server timeout"
32 msg "Starting make..."
34 rm -rf "$srcdir/$_gitname-build"
35 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
36 cd "$srcdir/$_gitname-build"
37 git checkout $_gitbranch
43 cd "$srcdir/$_gitname-build"
45 make DESTDIR="${pkgdir}" PREFIX=/usr install
46 install -D -m644 "${srcdir}/cwm.desktop" "${pkgdir}/usr/share/xsessions/cwm.desktop"
47 install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"