aboutsummaryrefslogtreecommitdiff
path: root/media/libs/libmikmod/libmikmod.SlackBuild
diff options
context:
space:
mode:
authorluis <luis@370017ae-e619-0410-ac65-c121f96126d4>2008-05-16 04:21:03 +0000
committerluis <luis@370017ae-e619-0410-ac65-c121f96126d4>2008-05-16 04:21:03 +0000
commitd6b14d82f0463e7cb55ae2f7ad9433ededcb47e3 (patch)
treea325ad8a7feb1e6b1b73014672cd54434eaa9ced /media/libs/libmikmod/libmikmod.SlackBuild
parent57c30ca3a22be7da09e62730ac9f7c48c86918bd (diff)
downloadslackbuilds-d6b14d82f0463e7cb55ae2f7ad9433ededcb47e3.tar.gz
slackbuilds-d6b14d82f0463e7cb55ae2f7ad9433ededcb47e3.tar.bz2
Updated: libmikmod-3.1.11 (compress manpages and info files)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1900 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media/libs/libmikmod/libmikmod.SlackBuild')
-rwxr-xr-xmedia/libs/libmikmod/libmikmod.SlackBuild23
1 files changed, 23 insertions, 0 deletions
diff --git a/media/libs/libmikmod/libmikmod.SlackBuild b/media/libs/libmikmod/libmikmod.SlackBuild
index 87930431..60d58a32 100755
--- a/media/libs/libmikmod/libmikmod.SlackBuild
+++ b/media/libs/libmikmod/libmikmod.SlackBuild
@@ -121,6 +121,29 @@ make install DESTDIR="$PKG" || exit $ERROR_INSTALL
xargs strip --strip-unneeded 2> /dev/null
)
+# Compress and link manpages
+if [ -d "$PKG/$PREFIX/man" ]; then
+ ( cd "$PKG/$PREFIX/man"
+ for manpagedir in $(find . -type d -name "man*") ; do
+ ( cd $manpagedir
+ for eachpage in $( find . -type l -maxdepth 1) ; do
+ ln -s $( readlink $eachpage ).gz $eachpage.gz
+ rm $eachpage
+ done
+ gzip -9 *.?
+ )
+ done
+ )
+fi
+
+# Compress info files
+if [ -d "$PKG/$PREFIX/info" ]; then
+ ( cd "$PKG/$PREFIX/info"
+ rm -f dir
+ gzip -9 *
+ )
+fi
+
# Install documentation
DOCS="AUTHORS COPYING.LESSER COPYING.LIB NEWS README TODO"
mkdir -p "$PKG/usr/doc/$PKG_NAME-$PKG_VERSION" || exit $ERROR_MKDIR