diff options
author | B. Watson <yalhcru@gmail.com> | 2022-02-22 15:20:09 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-02-23 20:10:24 +0700 |
commit | fa54ad7bcaecbe1e67466e54e3c5d7b6abf691ad (patch) | |
tree | 497486f1efbe5158c479470c032b2ce43407999a /games/nlarn | |
parent | bc5505df8153e6d324e8ebf101e22f5f40d63ad8 (diff) |
games/nlarn: Fix 15.0 build.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/nlarn')
-rw-r--r-- | games/nlarn/nlarn.SlackBuild | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/games/nlarn/nlarn.SlackBuild b/games/nlarn/nlarn.SlackBuild index d17e0b66d79b3..bd83cd25aeb3e 100644 --- a/games/nlarn/nlarn.SlackBuild +++ b/games/nlarn/nlarn.SlackBuild @@ -22,11 +22,15 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220222 bkw: Modified by SlackBuilds.org, BUILD=2: +# - fix build on 15.0. +# - binary in /usr/games + cd $(dirname $0) ; CWD=$(pwd) PRGNAM=nlarn VERSION=${VERSION:-0.7.2} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -38,9 +42,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 @@ -75,26 +76,26 @@ cd $PRGNAM-$VERSION 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" # set our CFLAGS, disable -Werror and use ncurses6-config sed -i -e "s|-Werror ||" -e "s|-O2|$SLKCFLAGS|" -e "s|ncurses5|ncurses6|" Makefile -make - -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 +# 20220222 bkw: without the 'config=release', our flags weren't being used. +make config=release mkdir -p $PKG/usr/share/games/$PRGNAM \ $PKG/usr/share/games/$PRGNAM/lib \ - $PKG/usr/share/games/$PRGNAM/resources + $PKG/usr/share/games/$PRGNAM/resources install -D -m0644 lib/* $PKG/usr/share/games/$PRGNAM/lib install -D -m0644 resources/* $PKG/usr/share/games/$PRGNAM/resources -install -D -m0755 $PRGNAM $PKG/usr/share/games/$PRGNAM -install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/bin/$PRGNAM +install -D -s -m0755 $PRGNAM $PKG/usr/share/games/$PRGNAM +install -D -m0755 $CWD/$PRGNAM.sh $PKG/usr/games/$PRGNAM mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a LICENSE *.txt $PKG/usr/doc/$PRGNAM-$VERSION |