aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-23 00:55:05 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2022-02-23 20:10:27 +0700
commitde064cd224b0ae04e1cf33a8627898429776d637 (patch)
treec62c4131d688da43626662795ecffbb26b986506 /games
parent00d56f29de0007d37da66a075ebc51b33cd97c56 (diff)
games/etlegacy-from-source: 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')
-rw-r--r--games/etlegacy-from-source/etlegacy-from-source.SlackBuild25
-rw-r--r--games/etlegacy-from-source/etlegacy-from-source.info6
2 files changed, 18 insertions, 13 deletions
diff --git a/games/etlegacy-from-source/etlegacy-from-source.SlackBuild b/games/etlegacy-from-source/etlegacy-from-source.SlackBuild
index 461b38253217..d09040b0c648 100644
--- a/games/etlegacy-from-source/etlegacy-from-source.SlackBuild
+++ b/games/etlegacy-from-source/etlegacy-from-source.SlackBuild
@@ -21,12 +21,20 @@
# 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 md5sums. this is ponce's build, and the files are hosted on
+# his server, I have to assume they're correct.
+# - fix the build: we have a GeoIP.dat.gz download, but it wasn't being
+# used, and the build was failing because we have -DINSTALL_GEOIP=1
+# but no extracted GeoIP.dat in the legacy/ dir...
+# - also, the etl*.sh scripts were looked for in the wrong place.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=etlegacy-from-source
SRCNAM=etlegacy
VERSION=${VERSION:-20201029_886f0ef}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,9 +46,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
@@ -63,20 +68,20 @@ else
w_omnibot=0
fi
-set -e # Exit on most errors
+set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $SRCNAM-$VERSION
-tar xvf $CWD/$SRCNAM-$VERSION.tar.?z*
+tar xvf $CWD/$SRCNAM-$VERSION.tar.xz
cd $SRCNAM-$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 {} \+
# Fix location of the omnibot.zip, man install path
# and leave the relative path to binaries off
@@ -87,6 +92,7 @@ mkdir -p build/legacy
cd build
cp -a $CWD/omnibot-linux-latest.tar.gz legacy/
cp -a $CWD/wolfadmin.tar.gz legacy/
+ zcat $CWD/GeoIP.dat.gz > legacy/GeoIP.dat
# We have to use bundled lua and sdl
cmake \
-DCMAKE_C_FLAGS_RELEASE:STRING="$SLKCFLAGS" \
@@ -163,8 +169,7 @@ mv $PKG/usr/share/man $PKG/usr/man
# Install a script to open urls, and move two scripts to launch the client and
# the dedicated server with omnibot support in the binaries folder
install -m 0755 $CWD/files/openurl.sh $PKG/usr/bin/openurl.sh
-mv $PKG/usr/share/$SRCNAM/etl*.sh $PKG/usr/bin/
-chmod 755 $PKG/usr/bin/etl*.sh
+install -m 0755 misc/etl*.sh $PKG/usr/bin/
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
diff --git a/games/etlegacy-from-source/etlegacy-from-source.info b/games/etlegacy-from-source/etlegacy-from-source.info
index 5555554ed368..75d2e0be2df3 100644
--- a/games/etlegacy-from-source/etlegacy-from-source.info
+++ b/games/etlegacy-from-source/etlegacy-from-source.info
@@ -6,9 +6,9 @@ DOWNLOAD="http://ponce.cc/slackware/sources/repo/etlegacy-20201029_886f0ef.tar.x
http://ponce.cc/slackware/sources/repo/wolfadmin.tar.gz \
http://ponce.cc/slackware/sources/repo/GeoIP.dat.gz"
MD5SUM="e3104a3206e1d1ae0f02466e31df3bca \
- eddeb7d4033cebc269d00e06bbccbfb6 \
- c919afd544c1a0e9a08d5a0128247214 \
- 5ac81d5de50c557be104e4c43f851c36"
+ 268e3650d1e0d2f1c3b94e734de0cfdc \
+ e9ea8808219e9e265bf3b1776a06081e \
+ 5b3d3299e0644f51cafd624e6b3a7ce8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="%README% etlegacy-data zenity"