games/devilutionx: Fix github tarball handling.

Align to template. Don't use PKNAM. Convention is usually
SRCNAM.

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Andrew Clemons 2022-04-13 21:34:22 +12:00 committed by Willy Sudiarto Raharjo
parent 148c220c7a
commit c124a03f52
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 9 additions and 8 deletions

View file

@ -24,15 +24,12 @@
cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=devilutionX
PRGNAM=devilutionx
SRCNAM=devilutionX
VERSION=${VERSION:-1.3.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PKGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -47,6 +44,10 @@ if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
exit 0
fi
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
@ -66,9 +67,9 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PKGNAM-$VERSION
rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \

View file

@ -1,7 +1,7 @@
PRGNAM="devilutionx"
VERSION="1.3.0"
HOMEPAGE="https://github.com/diasurgical/devilutionX"
DOWNLOAD="https://github.com/diasurgical/devilutionX/archive/1.3.0/devilutionx-1.3.0.tar.gz"
DOWNLOAD="https://github.com/diasurgical/devilutionX/archive/1.3.0/devilutionX-1.3.0.tar.gz"
MD5SUM="23791a40dfc5b6fbe6a935a3b76d5bc3"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""