summaryrefslogtreecommitdiff
path: root/haskell/xmonad-contrib/xmonad-contrib.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'haskell/xmonad-contrib/xmonad-contrib.SlackBuild')
-rw-r--r--haskell/xmonad-contrib/xmonad-contrib.SlackBuild12
1 files changed, 10 insertions, 2 deletions
diff --git a/haskell/xmonad-contrib/xmonad-contrib.SlackBuild b/haskell/xmonad-contrib/xmonad-contrib.SlackBuild
index 3212629e3e..fadea47434 100644
--- a/haskell/xmonad-contrib/xmonad-contrib.SlackBuild
+++ b/haskell/xmonad-contrib/xmonad-contrib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for xmonad-contrib
-# Copyright 2011 Mikko Värri, Finland
+# Copyright 2012 Mikko Värri, Finland
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=xmonad-contrib
VERSION=${VERSION:-0.10}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
GHC_VERSION=$(ghc --numeric-version)
@@ -71,6 +71,13 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Raise haskell-X11 version.
+patch -p0 <$CWD/xmonad-contrib_cabal.patch
+# Unambiguate Rotation type
+patch -p0 <$CWD/XMonad_Layout_Spiral_hs.patch
+# Remove noModMask, which is lifted to X11 bindings
+patch -p0 <$CWD/XMonad_Util_Paste_hs.patch
+
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
runghc Setup configure \
@@ -78,6 +85,7 @@ runghc Setup configure \
--libdir=/usr/lib${LIBDIRSUFFIX} \
--libsubdir=ghc-${GHC_VERSION}/$PRGNAM-$VERSION \
--enable-shared \
+ --enable-library-profiling \
--docdir=/usr/doc/$PRGNAM-$VERSION
runghc Setup build