updated on Tue Jan 24 00:00:24 UTC 2012
[aur-mirror.git] / musca / PKGBUILD
blob1cc54510894e3ac534d5d5242108a0f105ce50b3
1 # Maintainer: nem <nem at ikitten dot co dot uk>
2 # Contributor: Lukas Fleischer <archlinux at cryptocrack dot de>
3 # Contributor: Murtuza Akhtari <inxsible at gmail dot com>
5 pkgname=musca
6 pkgver=0.9.24
7 pkgrel=3
8 pkgdesc='musca wm - with a patchset fixing a few common bugs'
9 arch=('i686' 'x86_64')
10 url='http://aerosuidae.net/musca.html'
11 license=('GPL3')
12 depends=('libx11' 'dmenu')
13 conflicts=('musca-fixed')
14 source=("http://aerosuidae.net/${pkgname}-${pkgver}.tgz"
15         "0001-fix-dmenu.patch"
16         "0002-fix-cycle.patch"
17         "0003-fix-pad.patch")
18 md5sums=('e067a8e39b1a97d62fc8e43800edee70' 
19         '8a5d2261adb54199cf396e02757eb7e0'
20         'd1b8a94eace113e073baced4ff58a438'
21         '050f632a426ce8f401a12f37c69b0b07')
23 build() {
24   warning "The fix for dmenu changes the configuration of it!"
25   warning "old original config was: 'set dmenu dmenu <parameters>'"
26   warning "new patched config: 'set dmenu <parameters>'"
27   warning "In words: just pass the dmenu parameters!"
28   warning "So be sure to change your .musca_start or custom config.h accordingly!"
29   cd "${srcdir}/${pkgname}-${pkgver}"
30   echo Apply dmenu-patch
31   patch -p1 < "${srcdir}/0001-fix-dmenu.patch"
32   echo Apply cycle-patch
33   patch -p1 < "${srcdir}/0002-fix-cycle.patch"
34   echo Apply pad-patch
35   patch -p1 < "${srcdir}/0003-fix-pad.patch"
36   make || return 1
39 package() {
40   cd "${srcdir}/${pkgname}-${pkgver}"
42   install -Dm755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
43   install -Dm644 "${pkgname}.1" "${pkgdir}/usr/share/man/man1/${pkgname}.1"