[generic-python] handle man files

Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
This commit is contained in:
Gwenhael Le Moine 2022-04-14 16:27:26 +02:00
parent eab7516adf
commit e5d58c1883
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -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