summaryrefslogtreecommitdiffstats
path: root/steamclient
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2023-03-19 12:50:49 +0000
committer Eric Hameleers <alien@slackware.com>2023-03-19 12:50:49 +0000
commit6e5b64aef85df89ebf8bc7b02351fab5b2918822 (patch)
treece94a326fe4c39176bc30529635b10d594610937 /steamclient
parent252f4d4ee605d7b9fc3179a47211592325becf7b (diff)
downloadasb-6e5b64aef85df89ebf8bc7b02351fab5b2918822.tar.gz
asb-6e5b64aef85df89ebf8bc7b02351fab5b2918822.tar.xz
steamclient: update to 1.0.0.76
Diffstat (limited to 'steamclient')
-rwxr-xr-xsteamclient/build/steamclient.SlackBuild24
1 files changed, 17 insertions, 7 deletions
diff --git a/steamclient/build/steamclient.SlackBuild b/steamclient/build/steamclient.SlackBuild
index 1628237c..f524848a 100755
--- a/steamclient/build/steamclient.SlackBuild
+++ b/steamclient/build/steamclient.SlackBuild
@@ -1,6 +1,6 @@
#!/bin/sh
# $Id$
-# Copyright 2012, 2013, 2014, 2015, 2016, 2020, 2021 Eric Hameleers, Eindhoven, NL
+# Copyright 2012, 2013, 2014, 2015, 2016, 2020, 2021, 2023 Eric Hameleers, Eindhoven, NL
# All rights reserved.
#
# Permission to use, copy, modify, and distribute this software for
@@ -84,19 +84,29 @@
# - Update.
# 1.0.0.74-1: 27/dec/2021 by Eric Hameleers <alien@slackware.com>
# - Update.
+# 1.0.0.76-1: 19/mar/2023 by Eric Hameleers <alien@slackware.com>
+# - Update.
#
# Run 'sh steamclient.SlackBuild' to build a Slackware package.
-# The package (.tgz) and .txt file as well as build logs are created in /tmp .
+# The package (.txz) and .txt file as well as build logs are created in /tmp .
# Install it using 'installpkg'.
#
# -----------------------------------------------------------------------------
PRGNAM=steamclient
-VERSION=${VERSION:-1.0.0.74} # Use "LATEST" to just dowload the latest version.
-ARCH=i386
+VERSION=${VERSION:-1.0.0.76} # Use "LATEST" to just dowload the latest version.
BUILD=${BUILD:-1}
TAG=${TAG:-alien}
+if [ -z "$ARCH" ]; then
+ case "$(uname -m)" in
+ i?86) ARCH=i386 ;;
+ x86_64) ARCH=x86_64 ;;
+ *) echo "Unsupported architecture'!"; exit 1 ;;
+ esac
+ export ARCH
+fi
+
# Where do we look for sources?
SRCDIR=$(cd $(dirname $0); pwd)
@@ -177,7 +187,7 @@ tar xf ${SOURCE}
# Version check in case we downloaded the "latest" client:
if [ "$VERSION" = "LATEST" ]; then
echo -n "Changing package version from '$VERSION' to"
- VERSION=$(head -1 steam*/debian/changelog | cut -d'(' -f2 | cut -d')' -f1)
+ VERSION=$(head -1 steam*/debian/changelog | cut -d'(' -f2 | cut -d')' -f1 |cut -d: -f2)
echo " '$VERSION'."
fi
@@ -323,9 +333,9 @@ fi
# Build the package:
cd $PKG
-makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
+makepkg --linkadd y --chown n $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} 2>&1 | tee $OUTPUT/makepkg-${PRGNAM}.log
cd $OUTPUT
-md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-tgz}.md5
+md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz} > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.${PKGTYPE:-txz}.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}${TAG}.txt
if [ -f $PKG/install/slack-required ]; then