so far for ppc
[archlinuxppc.git] / xmonad / PKGBUILD
1 # $Id: PKGBUILD 26024 2010-09-12 16:06:47Z tdziedzic $
2 # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
3 # Maintainer: Vesa Kaihlavirta <vegai@iki.fi>
4 # Contributor: shild <shildv@gmail.com>
5
6 pkgname=xmonad
7 pkgver=0.9.1
8 pkgrel=8
9 pkgdesc="A lightweight X11 tiled window manager written in Haskell"
10 arch=('i686' 'x86_64' 'ppc')
11 url="http://xmonad.org/"
12 license=('BSD')
13 depends=('ghc=6.12.3' 'gmp' 'libxinerama' 'haskell-x11=1.5.0.0' 'sh' 'haskell-mtl=1.1.0.2' 'haskell-utf8-string=0.3.6')
14 install='xmonad.install'
15 source=(http://hackage.haskell.org/packages/archive/$pkgname/$pkgver/$pkgname-$pkgver.tar.gz xmonad.desktop xmonad.svg)
16 md5sums=('3d0dd5cf77768b10e1b7f3a47e32b09e'
17          'f61961459f190b6d948f1f2782afa7a7'
18          '72bfa5e62e4e44fe7fa59b6a7593d993')
19
20 build() {
21   cd $srcdir/$pkgname-$pkgver
22
23   runhaskell Setup.lhs configure --ghc --prefix=/usr \
24              --libsubdir=\$compiler/site-local/\$pkgid || return 1
25
26   runhaskell Setup.lhs build || return 1
27
28   runhaskell Setup.lhs register --gen-script
29   runhaskell Setup.lhs unregister --gen-script
30
31   install -D -m744 register.sh $pkgdir/usr/share/haskell/$pkgname/register.sh
32   install -m744 unregister.sh $pkgdir/usr/share/haskell/$pkgname/unregister.sh
33   runhaskell Setup.lhs copy --destdir=$pkgdir || return 1
34 #  runhaskell util/GenerateManpage.hs || return 1
35
36   install -D -m644 man/xmonad.1 $pkgdir/usr/share/man/man1/xmonad.1 || return 1
37
38   install -d -m755 $pkgdir/usr/share/xmonad && \
39   install -D LICENSE $pkgdir/usr/share/licenses/xmonad/LICENSE || return 1
40
41   install -D -m644 $srcdir/xmonad.desktop $pkgdir/usr/share/applications/xmonad.desktop && \
42   mkdir -p $pkgdir/etc/X11/sessions/ && \
43   ln -s /usr/share/applications/xmonad.desktop $pkgdir/etc/X11/sessions/xmonad.desktop && \
44   install -D -m644 $srcdir/xmonad.svg $pkgdir/usr/share/pixmaps/xmonad.svg
45 }