mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
games/unnethack: Updated for version 6.0.4_20220203_1f061e93b.
Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
parent
1e3c01cab0
commit
1a69a08469
2 changed files with 31 additions and 17 deletions
|
@ -22,10 +22,16 @@
|
|||
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
# 20220221 bkw: Modified by SlackBuilds.org, BUILD=2:
|
||||
# - update for v6.0.4_20220203_1f061e93b.
|
||||
# - fix build on 15.0.
|
||||
# - include man pages.
|
||||
# - include Guidebook.txt in doc dir.
|
||||
|
||||
cd $(dirname $0) ; CWD=$(pwd)
|
||||
|
||||
PRGNAM=unnethack
|
||||
VERSION=${VERSION:-5.2.0}
|
||||
VERSION=${VERSION:-6.0.4_20220203_1f061e93b}
|
||||
SRCVERSION=$(echo $VERSION | tr _ -)
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
@ -39,9 +45,6 @@ if [ -z "$ARCH" ]; then
|
|||
esac
|
||||
fi
|
||||
|
||||
# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
|
||||
# the name of the created package would be, and then exit. This information
|
||||
# could be useful to other scripts.
|
||||
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
|
||||
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
|
||||
exit 0
|
||||
|
@ -67,24 +70,29 @@ fi
|
|||
|
||||
set -e
|
||||
|
||||
SRCNAM=UnNetHack
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$SRCVERSION
|
||||
tar xvf $CWD/$PRGNAM-$SRCVERSION.tar.gz
|
||||
cd $PRGNAM-$SRCVERSION
|
||||
rm -rf $SRCNAM-$SRCVERSION
|
||||
tar xvf $CWD/$SRCNAM-$SRCVERSION.tar.gz
|
||||
cd $SRCNAM-$SRCVERSION
|
||||
chown -R root:root .
|
||||
find -L . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
|
||||
-o -perm 511 \) -exec chmod 755 {} \; -o \
|
||||
-o -perm 511 \) -exec chmod 755 {} \+ -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
|
||||
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+
|
||||
|
||||
SLKCFLAGS+=" -fcommon"
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--libdir=/usr/lib${LIBDIRSUFFIX} \
|
||||
--bindir=/usr/games \
|
||||
--sysconfdir=/etc \
|
||||
--localstatedir=/var \
|
||||
--mandir=/usr/man \
|
||||
|
@ -95,14 +103,20 @@ CXXFLAGS="$SLKCFLAGS" \
|
|||
--enable-curses-graphics \
|
||||
--build=$ARCH-slackware-linux
|
||||
|
||||
make
|
||||
make || make -j1
|
||||
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
|
||||
# 20220221 bkw: TODO: get these binaries out of /usr/share. They belong
|
||||
# in /usr/libexec (because they're not architecture-independent).
|
||||
strip $PKG/usr/share/$PRGNAM/{$PRGNAM,recover}
|
||||
|
||||
mkdir -p $PKG/usr/man/man6
|
||||
for i in doc/*.6; do
|
||||
gzip -9c < $i > $PKG/usr/man/man6/$( basename $i ).gz
|
||||
done
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ChangeLog Files Porting README* $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a ChangeLog Porting README* doc/Guidebook.txt $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
mkdir -p $PKG/install
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="unnethack"
|
||||
VERSION="5.2.0"
|
||||
HOMEPAGE="https://sourceforge.net/projects/unnethack/"
|
||||
DOWNLOAD="https://sourceforge.net/projects/unnethack/files/unnethack/5.2.0/unnethack-5.2.0.tar.gz"
|
||||
MD5SUM="4815b4c3faf6a6b06922a01feb4c37e4"
|
||||
VERSION="6.0.4_20220203_1f061e93b"
|
||||
HOMEPAGE="https://github.com/UnNetHack/UnNetHack/"
|
||||
DOWNLOAD="https://github.com/UnNetHack/UnNetHack/archive/6.0.4-20220203-1f061e93b/UnNetHack-6.0.4-20220203-1f061e93b.tar.gz"
|
||||
MD5SUM="e3f30f645d9a069b4bc45a698783b1e1"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES=""
|
||||
|
|
Loading…
Reference in a new issue