ruby/rubygem-lolcat: Remove empty man dir.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2021-07-25 22:16:47 +12:00 committed by Robby Workman
parent a35ec4698d
commit 4dd62a24e6

View file

@ -26,7 +26,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=rubygem-lolcat
VERSION=${VERSION:-99.9.20}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -110,6 +110,9 @@ gem install \
--bindir $PKG/usr/bin \
$CWD/$SRCNAM-$VERSION.gem
# remove empty /usr/share/man directory
rm -rf $PKG/usr/share
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true