games/crispy-doom: Fixed conflicts with chocolate-doom.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Dugan Chen 2017-01-15 23:00:01 +00:00 committed by Willy Sudiarto Raharjo
parent 1d8c745fff
commit ca91c19910
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -24,7 +24,7 @@
PRGNAM=crispy-doom
VERSION=${VERSION:-3.5}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -80,6 +80,7 @@ CXXFLAGS="$SLKCFLAGS" \
--localstatedir=/var \
--mandir=/usr/man \
--docdir=/usr/doc/$PRGNAM-$VERSION \
--bindir=/usr/games \
--build=$ARCH-slackware-linux
make
@ -88,6 +89,10 @@ 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
# Take care of conflicts with Chocolate DOOM
rm $PKG/usr/man/man6/chocolate-setup.6
mv $PKG/usr/man/man6/chocolate-server.6 $PKG/usr/man/man6/crispy-server.6
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done