ArchLinux/pkgbuild/xmobar-git/PKGBUILD
Cedric Girard 7a02bda149 Addition of git version of haskell-libmpd to support new GHC version
in xmobar. Update of xmobar-git to use this new version.
2011-03-30 10:31:39 +02:00

48 lines
1.6 KiB
Bash

# Maintainer: Cedric Girard <girard.cedric@gmail.com>
pkgname=xmobar-git
pkgver=20110330
pkgrel=1
pkgdesc="A minimal status bar for the XMonad Window Manager"
arch=('i686' 'x86_64')
url="http://projects.haskell.org/xmobar/"
license=('custom:BSD3')
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-libmpd-git' 'haskell-hinotify' 'wireless_tools' 'git' 'haskell-alsa-mixer')
depends=('wireless_tools' 'gmp' 'libxinerama' 'libxft' 'alsa-lib')
conflicts=('xmobar' 'xmobar-darcs')
install=
source=()
md5sums=()
_gitroot="https://github.com/jaor/xmobar.git"
_gitname="xmobar"
build() {
cd "${srcdir}"
msg "Connecting to GIT server...."
if [ -d $_gitname ] ; then
cd $_gitname && git pull origin
msg "The local files are updated."
else
git clone $_gitroot $_gitname
fi
msg "GIT checkout done or server timeout"
msg "Starting make..."
rm -rf "${srcdir}/$_gitname-build"
git clone "${srcdir}/$_gitname" "${srcdir}/$_gitname-build"
cd "${srcdir}/$_gitname-build"
sed -i 's!sgGet!sgGetTag!' src/Plugins/Monitors/MPD.hs
runhaskell Setup configure --flags="all_extensions" --prefix=/usr
runhaskell Setup build
install -D -m644 LICENSE ${pkgdir}/usr/share/licenses/$pkgname/BSD3
}
package() {
cd "${srcdir}/$_gitname-build"
runhaskell Setup copy --destdir=${pkgdir}
}