diff options
-rwxr-xr-x | abuild | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -190,6 +190,10 @@ doc() { mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/" fi done + + # remove if empty, ignore error (not empty) + rmdir "$pkgdir/usr/share" "$pkgdir/usr" 2>/dev/null + [ -d "$subpkgdir/usr/share/man" ] && depends="man" return 0 } |