diff options
Diffstat (limited to 'media/libs/libmikmod/libmikmod.SlackBuild')
-rwxr-xr-x | media/libs/libmikmod/libmikmod.SlackBuild | 23 |
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 |