aboutsummaryrefslogtreecommitdiff
path: root/games/hlsdk/hlsdk.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/hlsdk/hlsdk.SlackBuild')
-rw-r--r--games/hlsdk/hlsdk.SlackBuild9
1 files changed, 5 insertions, 4 deletions
diff --git a/games/hlsdk/hlsdk.SlackBuild b/games/hlsdk/hlsdk.SlackBuild
index 0c0e81f0d5f32..347c438247c93 100644
--- a/games/hlsdk/hlsdk.SlackBuild
+++ b/games/hlsdk/hlsdk.SlackBuild
@@ -23,6 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=hlsdk
+SRCNAM=halflife
VERSION=${VERSION:-28082015}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -60,9 +61,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$GITHASH
-tar xvf $CWD/$GITHASH.tar.gz
-cd halflife-$GITHASH
+rm -rf $SRCNAM-$GITHASH
+tar xvf $CWD/$SRCNAM-$GITHASH.tar.gz
+cd $SRCNAM-$GITHASH
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -72,7 +73,7 @@ find -L . \
cd ..
mkdir -p $PKG/opt
-cp -r halflife-$GITHASH $PKG/opt/hlsdk
+cp -r $SRCNAM-$GITHASH $PKG/opt/hlsdk
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
touch $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild