diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-21 12:42:18 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2022-02-21 14:34:28 -0600 |
commit | 1a69a08469729a15507a23ae9bf082a4ad530ed9 (patch) | |
tree | 96597bf0e45192e2bcadeb0309d940973ceafdc0 /games | |
parent | 1e3c01cab01f30907c5e75ad258ed0284a1f2b8e (diff) |
games/unnethack: Updated for version 6.0.4_20220203_1f061e93b.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games')
-rw-r--r-- | games/unnethack/unnethack.SlackBuild | 40 | ||||
-rw-r--r-- | games/unnethack/unnethack.info | 8 |
2 files changed, 31 insertions, 17 deletions
diff --git a/games/unnethack/unnethack.SlackBuild b/games/unnethack/unnethack.SlackBuild index f749debd65c7..5b8d3c440dc7 100644 --- a/games/unnethack/unnethack.SlackBuild +++ b/games/unnethack/unnethack.SlackBuild @@ -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 diff --git a/games/unnethack/unnethack.info b/games/unnethack/unnethack.info index dd1640aa347a..72e5073cb15d 100644 --- a/games/unnethack/unnethack.info +++ b/games/unnethack/unnethack.info @@ -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="" |