From e14df9599e2e59f047cbfc30ab7364c81793477d Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Fri, 8 Apr 2022 17:58:27 -0400 Subject: games/alienarena: Fix docs. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- games/alienarena/alienarena.SlackBuild | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'games') diff --git a/games/alienarena/alienarena.SlackBuild b/games/alienarena/alienarena.SlackBuild index 6d491d724e5ef..fa690a79c99b8 100644 --- a/games/alienarena/alienarena.SlackBuild +++ b/games/alienarena/alienarena.SlackBuild @@ -22,13 +22,16 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220408 bkw: Modified by SlackBuilds.org, BUILD=2: +# - remove empty dirs and INSTALL from doc dir. + # 20220222 bkw: Modified by SlackBuilds.org: fix build on 15.0. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=alienarena VERSION=${VERSION:-7.66} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -106,17 +109,19 @@ CXXFLAGS="$SLKCFLAGS" \ --build=$ARCH-slackware-linux make -make install DESTDIR=$PKG - -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 +make install-strip DESTDIR=$PKG mkdir -p $PKG/usr/share/applications install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications -cp -a Tools/* $PKG/usr/doc/$PRGNAM-$VERSION -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -find $PKG/usr/doc -type f -exec chmod 0644 '{}' \; +PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +cp -a Tools/* $PKGDOC +rm -rf $PKGDOC/INSTALL +cat $CWD/$PRGNAM.SlackBuild > $PKGDOC/$PRGNAM.SlackBuild + +# doc permissions are bad, plus empty directories. +find $PKGDOC -type f -exec chmod 0644 '{}' \+ +find $PKGDOC -depth -empty -exec rm -rf {} \+ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc -- cgit v1.2.3