mirror of
https://github.com/SlackBuildsOrg/slackbuilds
synced 2024-09-28 15:21:00 +02:00
games/alienarena: Fix docs.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
56b120ae4a
commit
e14df9599e
1 changed files with 13 additions and 8 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue