Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

xmobar-git PKGBUILD

By: a guest on Sep 2nd, 2012  |  syntax: Bash  |  size: 1.83 KB  |  hits: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Cedric Girard <girard.cedric@gmail.com>                                                                                                          
  2. pkgname=xmobar-git
  3. pkgver=20120902
  4. pkgrel=1
  5. pkgdesc="A minimal status bar for the XMonad Window Manager"
  6. arch=('i686' 'x86_64')
  7. url="http://projects.haskell.org/xmobar/"
  8. license=('custom:BSD3')
  9. makedepends=('ghc'
  10.              'haskell-x11>=1.6'
  11.              'haskell-x11-xft<0.4'
  12.              'haskell-alsa-core<0.6'
  13.              'haskell-alsa-mixer<0.2'
  14.              'haskell-hinotify<0.4'
  15.              'haskell-libmpd>=0.8'
  16.              'haskell-mtl>=2.0.1.0'
  17.              'haskell-parsec>=3.1.1'
  18.              'haskell-stm>=2.2.0.1'
  19.              'haskell-timezone-olson<0.2'
  20.              'haskell-timezone-series<0.2'
  21.              'haskell-utf8-string<0.4'
  22.              'haskell-dbus'
  23.              'libxrandr'
  24.              'iw'
  25.              'git')
  26. depends=('iw' 'gmp' 'libxinerama' 'libxft' 'alsa-lib')
  27. conflicts=('xmobar' 'xmobar-darcs')
  28. install=
  29. source=()
  30. md5sums=()
  31.  
  32. _gitroot="https://github.com/jaor/xmobar.git"
  33. _gitname="xmobar"
  34.  
  35. build() {
  36.     cd "${srcdir}"
  37.     msg "Connecting to GIT server...."
  38.  
  39.     if [ -d $_gitname ] ; then
  40.         cd $_gitname && git pull origin
  41.         msg "The local files are updated."
  42.     else
  43.         git clone $_gitroot $_gitname
  44.     fi
  45.  
  46.     msg "GIT checkout done or server timeout"
  47.     msg "Starting make..."
  48.  
  49.     rm -rf "${srcdir}/$_gitname-build"
  50.     git clone "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
  51.     cd "${srcdir}/$_gitname-build"
  52.  
  53.     runhaskell Setup configure --flags="all_extensions" --prefix=/usr
  54.     runhaskell Setup build
  55.     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/BSD3
  56. }
  57.  
  58. package() {
  59.     cd "${srcdir}/$_gitname-build"
  60.     runhaskell Setup copy --destdir=${pkgdir}
  61. }