diff options
author | B. Watson <urchlay@slackware.uk> | 2024-10-18 17:55:10 -0400 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2024-11-02 19:28:34 +0700 |
commit | 9f017fe18847ba2f7b5fac231cba0d587919217d (patch) | |
tree | b1db19f89d21357e240df4d9433fff47e96dbf0e /games | |
parent | 01ca1fa732e22c7ad71c65907abe910ee912e5ab (diff) |
games/glestae: Build with lua51.
Signed-off-by: B. Watson <urchlay@slackware.uk>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r-- | games/glestae/glestae.SlackBuild | 22 | ||||
-rw-r--r-- | games/glestae/glestae.info | 2 |
2 files changed, 10 insertions, 14 deletions
diff --git a/games/glestae/glestae.SlackBuild b/games/glestae/glestae.SlackBuild index ae862a0387c7..6c36d573f692 100644 --- a/games/glestae/glestae.SlackBuild +++ b/games/glestae/glestae.SlackBuild @@ -24,12 +24,13 @@ # 20200906 bkw: modified by SlackBuilds.org: the build was failing if # wxGTK3 was installed, due to the /usr/bin/wx-config conflict. +# 20241018 bkw: modified by SlackBuilds.org, BUILD=5: build with lua51. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=glestae VERSION=${VERSION:-0.3.93} -BUILD=${BUILD:-4} +BUILD=${BUILD:-5} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -41,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 @@ -76,20 +74,21 @@ rm -rf $PRGNAM-src-$VERSION tar xvf $CWD/$PRGNAM-src-$VERSION.tar.bz2 cd $PRGNAM-src-$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 \ - \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; +find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \ + \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} + # Fixes from upstream for libpng 1.5 and gcc 4.7.x. patch -p1 < $CWD/libpng-1.5.patch patch -p1 < $CWD/gcc-4.7.patch # This is the new cmake install. New in version 0.3. +# 20241020 bkw: it can't find "Lua51" without help, cmake wants +# to look in lua.h to determine the lua version, but it looks in +# /usr/include/lua.h (from lua 5.4) unless we force the include dir. mkdir -p build cd build cmake -G "Unix Makefiles" \ + -DLUA_INCLUDE_DIR="/usr/include/lua5.1" \ -DwxWidgets_CONFIG_OPTIONS="--version=2.8" \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ @@ -97,12 +96,9 @@ cd build -DCMAKE_BUILD_TYPE=Release .. make VERBOSE=1 - make install DESTDIR=$PKG + make install/strip DESTDIR=$PKG cd .. -find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ - | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a docs/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild diff --git a/games/glestae/glestae.info b/games/glestae/glestae.info index 208a335eccb3..0cc510182106 100644 --- a/games/glestae/glestae.info +++ b/games/glestae/glestae.info @@ -5,6 +5,6 @@ DOWNLOAD="https://downloads.sourceforge.net/glestae/glestae-src-0.3.93.tar.bz2" MD5SUM="83fec41c3c163dfb8437df93e98b5901" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="lua physfs" +REQUIRES="lua51 physfs" MAINTAINER="Jeremy Hansen" EMAIL="jebrhansen+SBo@gmail.com" |