2010-12-22 12:22:10 +01:00
|
|
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
|
|
|
pkgname=xmobar-git
|
2012-10-12 15:48:39 +02:00
|
|
|
pkgver=20121012
|
2011-01-28 20:27:09 +01:00
|
|
|
pkgrel=1
|
2010-12-22 12:22:10 +01:00
|
|
|
pkgdesc="A minimal status bar for the XMonad Window Manager"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="http://projects.haskell.org/xmobar/"
|
|
|
|
license=('custom:BSD3')
|
2012-09-05 11:35:33 +02:00
|
|
|
makedepends=(
|
|
|
|
'ghc'
|
|
|
|
'haskell-x11<1.7'
|
|
|
|
'haskell-x11-xft<0.4'
|
|
|
|
'haskell-alsa-core<0.6'
|
|
|
|
'haskell-alsa-mixer<0.2'
|
2012-10-12 15:48:39 +02:00
|
|
|
'haskell-bytestring=0.10.0.0'
|
|
|
|
'haskell-containers=0.5.0.0'
|
2012-09-05 11:35:33 +02:00
|
|
|
'haskell-dbus>=0.10'
|
2012-10-12 15:48:39 +02:00
|
|
|
'haskell-directory=1.2.0.0'
|
|
|
|
'haskell-filepath=1.3.0.1'
|
2012-09-05 11:35:33 +02:00
|
|
|
'haskell-hinotify<0.4'
|
|
|
|
'haskell-libmpd<0.9'
|
|
|
|
'haskell-mtl<2.2'
|
2012-10-12 15:48:39 +02:00
|
|
|
'haskell-old-locale=1.0.0.5'
|
2012-09-05 11:35:33 +02:00
|
|
|
'haskell-parsec<3.2'
|
2012-10-12 15:48:39 +02:00
|
|
|
'haskell-process=1.1.0.2'
|
2012-09-05 11:35:33 +02:00
|
|
|
'haskell-stm<2.5'
|
2012-10-12 15:48:39 +02:00
|
|
|
'haskell-time=1.4.0.1'
|
2012-09-05 11:35:33 +02:00
|
|
|
'haskell-timezone-olson<0.2'
|
|
|
|
'haskell-timezone-series<0.2'
|
2012-10-12 15:48:39 +02:00
|
|
|
'haskell-unix=2.6.0.0'
|
2012-09-05 11:35:33 +02:00
|
|
|
'haskell-utf8-string<0.4'
|
|
|
|
'libxrandr'
|
|
|
|
'wireless_tools'
|
|
|
|
'git'
|
|
|
|
)
|
|
|
|
depends=('wireless_tools' 'gmp' 'libxml2' 'libxrandr' 'libxinerama' 'libxft' 'alsa-lib')
|
2010-12-22 12:22:10 +01:00
|
|
|
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
|
2012-09-05 11:35:33 +02:00
|
|
|
git clone $_gitroot $_gitname
|
2010-12-22 12:22:10 +01:00
|
|
|
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"
|
2012-09-05 11:35:33 +02:00
|
|
|
|
2010-12-22 12:22:10 +01:00
|
|
|
runhaskell Setup configure --flags="all_extensions" --prefix=/usr
|
2012-09-05 11:35:33 +02:00
|
|
|
runhaskell Setup build
|
2010-12-22 12:22:10 +01:00
|
|
|
|
2012-09-05 11:35:33 +02:00
|
|
|
install -D -m644 license ${pkgdir}/usr/share/licenses/$pkgname/BSD3
|
2010-12-22 12:22:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/$_gitname-build"
|
|
|
|
runhaskell Setup copy --destdir=${pkgdir}
|
2012-09-05 11:35:33 +02:00
|
|
|
}
|