summaryrefslogtreecommitdiffstats
path: root/misc/funny-manpages/funny-manpages.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'misc/funny-manpages/funny-manpages.SlackBuild')
-rw-r--r--misc/funny-manpages/funny-manpages.SlackBuild13
1 files changed, 9 insertions, 4 deletions
diff --git a/misc/funny-manpages/funny-manpages.SlackBuild b/misc/funny-manpages/funny-manpages.SlackBuild
index 6f71ed08be..af84fdb9a6 100644
--- a/misc/funny-manpages/funny-manpages.SlackBuild
+++ b/misc/funny-manpages/funny-manpages.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for funny-manpages
-# Copyright 2007-2008 Michiel van Wessem, Manchester, United Kingdom
+# Copyright 2007-2009 Michiel van Wessem, Manchester, United Kingdom
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -28,9 +28,8 @@ VERSION=1.3.5
SRC_VERSION=1.3
DEB_VERSION=1.3-5
-
ARCH=${ARCH:-noarch}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
CWD=$(pwd)
@@ -57,18 +56,24 @@ find . \
patch -p1 < $CWD/${PRGNAM}_$DEB_VERSION.diff
# Create the directories we need
-mkdir -p $PKG/usr/man/man{1,3,6}
+mkdir -p $PKG/usr/man/man{1,3,6,7}
for manpage in $(echo *fun); do
section=$(echo $manpage | awk -F. '{print $2}' | colrm 2 4)
install -m 0644 $manpage $PKG/usr/man/man$section/$manpage
done
+# Move date.1fun over to mansection 6. It is kinda screwing with upstream,
+# but right now causes a conflict with the systems date(1)
( cd $PKG/usr/man/man1
ln -sf grope.1fun egrope.1fun
ln -sf grope.1fun fgrope.1fun
+ mv date.1fun ../man6/date.6fun
)
+# Add custom noobfarm manpage. Thanks to Matt Hayes.
+install -m 0644 $CWD/noobfarm.7 $PKG/usr/man/man7/noobfarm.7fun
+
( cd $PKG/usr/man
find . -type f -exec gzip -9 {} \;
for i in $( find . -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done