From e5d58c1883ea1c6d78f485180d612c8c172f9368 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Thu, 14 Apr 2022 16:27:26 +0200 Subject: [PATCH] [generic-python] handle man files Signed-off-by: Gwenhael Le Moine --- generic-python.SlackBuild | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/generic-python.SlackBuild b/generic-python.SlackBuild index a052d0b6..9f8e4712 100755 --- a/generic-python.SlackBuild +++ b/generic-python.SlackBuild @@ -25,6 +25,11 @@ EXTRA="" [ "x$VERSION" == "xpip" ] || EXTRA="==$VERSION" pip install --ignore-installed --root $PKG --no-deps $PRGNAM$EXTRA +if [ -d $PKG/usr/share/man ]; then + mv $PKG/usr/share/man $PKG/usr/ + find $PKG/usr/man -type f -not -name \*.gz -exec gzip -9 {} \; +fi + METADATA_FILE=$(find $PKG -name METADATA) [ ! -e $METADATA_FILE ] && exit 1