diff --git a/system/nerdctl/nerdctl.SlackBuild b/system/nerdctl/nerdctl.SlackBuild index de4493eaaa2..83a001ce335 100644 --- a/system/nerdctl/nerdctl.SlackBuild +++ b/system/nerdctl/nerdctl.SlackBuild @@ -82,6 +82,11 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a README.md LICENSE NOTICE $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild +if [ -d $PKG/usr/share/doc ]; then + mv $PKG/usr/share/doc/* $PKG/usr/doc/$PRGNAM-$VERSION + rm -rf $PKG/usr/share/doc +fi + mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc