diff options
author | Andrew Clemons <andrew.clemons@gmail.com> | 2022-04-13 21:34:22 +1200 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-16 12:12:39 +0700 |
commit | c124a03f524bbaccb7ce809ac5ddc368493abb15 (patch) | |
tree | a2b859aaf6ee1f65ba64c99410234a256d4bd14c /games/devilutionx | |
parent | 148c220c7a0fd014eefca2984d604f1c862f0a25 (diff) |
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>
Diffstat (limited to 'games/devilutionx')
-rw-r--r-- | games/devilutionx/devilutionx.SlackBuild | 15 | ||||
-rw-r--r-- | games/devilutionx/devilutionx.info | 2 |
2 files changed, 9 insertions, 8 deletions
diff --git a/games/devilutionx/devilutionx.SlackBuild b/games/devilutionx/devilutionx.SlackBuild index 92dbc853475c6..482e80dc26eac 100644 --- a/games/devilutionx/devilutionx.SlackBuild +++ b/games/devilutionx/devilutionx.SlackBuild @@ -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 \ diff --git a/games/devilutionx/devilutionx.info b/games/devilutionx/devilutionx.info index c2337d67a4645..f145dad7c4895 100644 --- a/games/devilutionx/devilutionx.info +++ b/games/devilutionx/devilutionx.info @@ -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="" |