mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
games/glestae: Build with lua51.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
01ca1fa732
commit
9f017fe188
2 changed files with 10 additions and 14 deletions
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue