Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

xmobar PKGBUILD without mpd

By: X-dark on Mar 28th, 2011  |  syntax: Bash  |  size: 1.67 KB  |  views: 135  |  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=20110314
  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' 'haskell-x11>=1.3.0' 'haskell-bytestring=0.9.1.10' 'haskell-containers=0.4.0.0' 'haskell-directory=1.1.0.0' 'haskell-filepath=1.2.0.0' 'haskell-mtl=2.0.1.0' 'haskell-old-locale=1.0.0.2' 'haskell-old-time=1.0.0.6' 'haskell-parsec=3.1.1' 'haskell-process=1.0.1.5' 'haskell-stm=2.2.0.1' 'haskell-time=1.2.0.3' 'haskell-unix=2.4.2.0' 'haskell-utf8-string' 'haskell-hinotify' 'wireless_tools' 'git' 'haskell-alsa-mixer')
  10. depends=('wireless_tools' 'gmp' 'libxinerama' 'libxft' 'alsa-lib')
  11. conflicts=('xmobar' 'xmobar-darcs')
  12. install=
  13. source=()
  14. md5sums=()
  15.  
  16. _gitroot="https://github.com/jaor/xmobar.git"
  17. _gitname="xmobar"
  18.  
  19. build() {
  20.     cd "${srcdir}"
  21.     msg "Connecting to GIT server...."
  22.  
  23.     if [ -d $_gitname ] ; then
  24.         cd $_gitname && git pull origin
  25.         msg "The local files are updated."
  26.     else
  27.         git clone $_gitroot $_gitname
  28.     fi
  29.  
  30.     msg "GIT checkout done or server timeout"
  31.     msg "Starting make..."
  32.  
  33.     rm -rf "${srcdir}/$_gitname-build"
  34.     git clone "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
  35.     cd "${srcdir}/$_gitname-build"
  36.  
  37.     runhaskell Setup configure --flags="with_xft" --flags="with_inotify" --flags="with_iwlib" --flags="with_alsa" --prefix=/usr
  38.     runhaskell Setup build
  39.  
  40.     install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/BSD3
  41. }
  42.  
  43. package() {
  44.     cd "${srcdir}/$_gitname-build"
  45.     runhaskell Setup copy --destdir=${pkgdir}
  46. }