summaryrefslogtreecommitdiff
path: root/community/xmobar
diff options
context:
space:
mode:
Diffstat (limited to 'community/xmobar')
-rw-r--r--community/xmobar/PKGBUILD31
-rw-r--r--community/xmobar/xmobar-0.15-haskell-mtl.patch12
2 files changed, 43 insertions, 0 deletions
diff --git a/community/xmobar/PKGBUILD b/community/xmobar/PKGBUILD
new file mode 100644
index 000000000..1f62f28c3
--- /dev/null
+++ b/community/xmobar/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 92482 2013-06-06 20:06:10Z jelle $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Arch Haskell Team <arch-haskell@haskell.org>
+
+pkgname=xmobar
+pkgver=0.18
+pkgrel=1
+pkgdesc="A Minimalistic Text Based Status Bar"
+url="http://hackage.haskell.org/package/xmobar"
+license=('custom:BSD3')
+arch=('i686' 'x86_64')
+depends=('gmp' 'libxft' 'libxinerama' 'wireless_tools' 'libxrandr')
+makedepends=('ghc=7.6.3-1' 'haskell-x11=1.6.1.1-3' 'haskell-x11-xft=0.3.1-9' 'haskell-utf8-string=0.3.7-5'
+ 'haskell-stm=2.4.2-2' 'haskell-parsec=3.1.3-3' 'haskell-mtl=2.1.2-3' 'haskell-regex-compat')
+options=('strip')
+source=(http://hackage.haskell.org/packages/archive/xmobar/$pkgver/xmobar-$pkgver.tar.gz)
+
+build() {
+ cd ${srcdir}/xmobar-$pkgver
+
+ runhaskell Setup configure --disable-optimization --prefix=/usr --flags="with_utf8 with_xft with_iwlib"
+ runhaskell Setup build
+}
+
+package() {
+ cd ${srcdir}/xmobar-$pkgver
+ runhaskell Setup copy --destdir=${pkgdir}
+ install -D -m644 license ${pkgdir}/usr/share/licenses/$pkgname/LICENSE
+}
+
+md5sums=('4d0502fa75cd51ff23e41e1711f25adb')
diff --git a/community/xmobar/xmobar-0.15-haskell-mtl.patch b/community/xmobar/xmobar-0.15-haskell-mtl.patch
new file mode 100644
index 000000000..bee3dc354
--- /dev/null
+++ b/community/xmobar/xmobar-0.15-haskell-mtl.patch
@@ -0,0 +1,12 @@
+diff -aur xmobar-0.15.old/xmobar.cabal xmobar-0.15/xmobar.cabal
+--- xmobar-0.15.old/xmobar.cabal 2012-06-11 17:04:21.422444926 +0000
++++ xmobar-0.15/xmobar.cabal 2012-06-11 17:05:16.772001865 +0000
+@@ -112,7 +112,7 @@
+ time,
+ filepath,
+ X11 == 1.6.*,
+- mtl == 2.0.*,
++ mtl >= 2.0 && <2.2,
+ parsec == 3.1.*,
+ stm == 2.3.*
+