diff options
author | B. Watson <yalhcru@gmail.com> | 2022-04-08 17:58:27 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-09 15:45:12 +0700 |
commit | e14df9599e2e59f047cbfc30ab7364c81793477d (patch) | |
tree | f673d00e066926caba17dadbba790a12fa95a259 | |
parent | 56b120ae4afe8caf6f8f66dd32444e9db9ff09a9 (diff) |
games/alienarena: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | games/alienarena/alienarena.SlackBuild | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/games/alienarena/alienarena.SlackBuild b/games/alienarena/alienarena.SlackBuild index 6d491d724e5e..fa690a79c99b 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 |