diff options
author | David Spencer <idlemoor@slackbuilds.org> | 2017-01-15 21:02:29 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-21 07:04:19 +0700 |
commit | 8411f387c96a64ad48112cd8887aec24400612df (patch) | |
tree | 14a5a886ff2ba8c008ad0c83a13125ee036f3a7e /games/hlsdk/hlsdk.SlackBuild | |
parent | 63a51a46d0d04d9f0598258b3f9c659e9c7545ae (diff) |
games/hlsdk: Fixed tarball handling.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/hlsdk/hlsdk.SlackBuild')
-rw-r--r-- | games/hlsdk/hlsdk.SlackBuild | 9 |
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 |