desktop/xmonad: Examples are placed differently under GHC 7.8.4.

Signed-off-by: Mikko Värri <vmj@linuxbox.fi>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Mikko Värri 2015-02-24 22:24:41 +02:00 committed by Willy Sudiarto Raharjo
parent ec46a8ebfe
commit b1e8894c74

View file

@ -2,7 +2,7 @@
# Slackware build script for xmonad
# Copyright 2013 Mikko Värri, Finland
# Copyright 2015 Mikko Värri, Finland
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@ -24,7 +24,7 @@
PRGNAM=xmonad
VERSION=${VERSION:-0.11}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
GHC_VERSION=$(ghc --numeric-version)
@ -96,10 +96,11 @@ PKGID=$( grep -E "^id: " $PRGNAM-$VERSION.conf | cut -d" " -f2 )
mkdir -p $PKG/$PKGCONFD
mv $PRGNAM-$VERSION.conf $PKG/$PKGCONFD/$PKGID.conf
# Move the example config file
mv $PKG/usr/share/$PRGNAM-$VERSION/man $PKG/usr/doc/$PRGNAM-$VERSION/man
rmdir $PKG/usr/share/$PRGNAM-$VERSION
rmdir $PKG/usr/share
# Copy the example config file
cp -a man $PKG/usr/doc/$PRGNAM-$VERSION/man
# $PKG/usr/share contains duplicates of the example config
rm -rf $PKG/usr/share
# Copy the man page
mkdir -p $PKG/usr/man/man1