games/hlsdk: Fixed tarball handling.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
David Spencer 2017-01-15 21:02:29 +00:00 committed by Willy Sudiarto Raharjo
parent 63a51a46d0
commit 8411f387c9
No known key found for this signature in database
GPG Key ID: 887B8374D7333381
3 changed files with 7 additions and 6 deletions

View File

@ -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

View File

@ -1,7 +1,7 @@
PRGNAM="hlsdk"
VERSION="28082015"
HOMEPAGE="https://github.com/FWGS/halflife"
DOWNLOAD="https://github.com/FWGS/halflife/archive/235f2f448f5cab7251206f8ff1f242e30346a4d4.tar.gz"
DOWNLOAD="https://github.com/FWGS/halflife/archive/235f2f4/halflife-235f2f448f5cab7251206f8ff1f242e30346a4d4.tar.gz"
MD5SUM="fe2d71f00ac84fd55cfff6e0bdef5f4f"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""

View File

@ -5,7 +5,7 @@
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
|-----handy-ruler------------------------------------------------------|
hlsdk: hlsdk (Half Life 1 SDK)
hlsdk:
hlsdk: Half-Life 1 engine based games SDK